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

Enable Flake8 E722 #44394

Merged
merged 1 commit into from
Sep 24, 2020
Merged

Enable Flake8 E722 #44394

merged 1 commit into from
Sep 24, 2020

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

Python static analysis. This check looks for uses of bare except:; these are bad because they catch e.g. SystemExit, which should not normally be caught.

Describe the solution

Enable Flake8 E722. Fix resulting warnings.

Describe alternatives you've considered

None.

Testing

Running flake8.

Additional context

This check looks for uses of bare 'except:'; these are bad because they
catch e.g. SystemExit, which should not normally be caught.
@ZhilkinSerg ZhilkinSerg added Code: Tests Measurement, self-control, statistics, balancing. [Python] Code made in Python labels Sep 24, 2020
@ZhilkinSerg ZhilkinSerg merged commit ef3d21a into CleverRaven:master Sep 24, 2020
@lgtm-com
Copy link

lgtm-com bot commented Sep 24, 2020

This pull request fixes 3 alerts when merging f69d2cb into 5bcd338 - view on LGTM.com

fixed alerts:

  • 3 for Except block handles 'BaseException'

@jbytheway jbytheway deleted the flake8_E722 branch September 24, 2020 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Tests Measurement, self-control, statistics, balancing. [Python] Code made in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants