You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the library's exceptions inherit directly from Python's Exception which prevents from catching them in one go (exclusive of any other kind of exception) : one has to list explicitly each of these exception classes in one's exceptclause. Also, if some day another exception type is added by the library, it will escape this try...except piece of code.
This is not a bug, but an enhancement: having all substack exception types subclass a SubstackException(itself suclassing Exception) would make it easier for client code.
The text was updated successfully, but these errors were encountered:
All the library's exceptions inherit directly from Python's
Exception
which prevents from catching them in one go (exclusive of any other kind of exception) : one has to list explicitly each of these exception classes in one'sexcept
clause. Also, if some day another exception type is added by the library, it will escape thistry...except
piece of code.This is not a bug, but an enhancement: having all substack exception types subclass a
SubstackException
(itself suclassingException
) would make it easier for client code.The text was updated successfully, but these errors were encountered: