We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code makes debugging a little bit harder:
try: # do something except: return False
We should explicitly specify the exception, for example:
try: # do something except ValueError: return False
or
try: # do something except Exception as exc: logger.debug(f"Uncaught error={exc}") return False
Given this new style try-catch, we can avoid errors like NameError, SyntaxError, etc. (which should be fixed by developer) or any runtime errors.
NameError
SyntaxError
The text was updated successfully, but these errors were encountered:
dae1263
moabu
No branches or pull requests
The following code makes debugging a little bit harder:
We should explicitly specify the exception, for example:
or
Given this new style try-catch, we can avoid errors like
NameError
,SyntaxError
, etc. (which should be fixed by developer) or any runtime errors.The text was updated successfully, but these errors were encountered: