Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs string and exception message improvements #1767

Merged
merged 1 commit into from
Jun 2, 2020
Merged

Conversation

frenck
Copy link
Member

@frenck frenck commented Jun 2, 2020

Some improvements to docstrings and error messages. Added the add-on slug to some exceptions thrown, so it becomes more clear which add-on causes it.

@pvizeli pvizeli merged commit 9f7e0ec into dev Jun 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the frenck-2020-0579 branch June 2, 2020 09:26
@@ -137,10 +137,10 @@ def _extract_addon(

addon = self.sys_addons.get(addon_slug)
if not addon:
raise APIError("Addon does not exist")
raise APIError(f"Addon {addon_slug} does not exist", addon_slug)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second argument is a mistake, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is!

Adjusting...

@lock lock bot locked and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants