Fix additional parameter on exception (#1774)

This commit is contained in:
Franck Nijhof 2020-06-02 22:57:47 +02:00 committed by GitHub
parent a0ecb46584
commit f13d08d37a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ class APIAddons(CoreSysAttributes):
addon = self.sys_addons.get(addon_slug)
if not addon:
raise APIError(f"Addon {addon_slug} does not exist", addon_slug)
raise APIError(f"Addon {addon_slug} does not exist")
if check_installed and not addon.is_installed:
raise APIError(f"Addon {addon.slug} is not installed")