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
And I want to throw an exception here! Because I prefer an exception over None.
You solution implies that we will have to manually raise these exceptions:
As per the docs:
This may lead a reader to believe that
getattr(obj, 'attribute')
will not throw an exception.Correct
Incorrect
The text was updated successfully, but these errors were encountered: