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
Api exception improvement #1485
Api exception improvement #1485
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments here. I didn't quite do a full review. Something doesn't quite smell right about having two cases of RedditErrorItem.
) -> List[RedditErrorItem]: | ||
"""Covert an exception list into a :class:`.RedditErrorItem` list. | ||
|
||
.. warning:: This method is deprecated. Use the private method of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should recommend using the private method. We could instead say something like this method is deprecated and will be removed without replacement in PRAW 8.0.
@@ -81,6 +142,33 @@ def parse_exception_list( | |||
) | |||
for exception in exceptions | |||
] | |||
for exception in baselist: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this flag to differentiate between different cases of RedditErrorItem
could we instead use different classes with the same interface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t see the need to use different classes, as the only difference is the __repr__
method.
Author no longer active on this project :'(. Closing PRs. |
The documentation changes to APIException and related items have been separated from the other PR.
Fix #1484