-
Notifications
You must be signed in to change notification settings - Fork 152
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
random cleanups / fixes #1879
random cleanups / fixes #1879
Conversation
do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
local variable job is not assigned if queue was empty when calling .run(), but it is used in exception handler.
the code intended to check if *any* worker is running for any site was *unreachable*. this caused false negative results for site=None.
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.
Looks good to me.
The pycharm code checker seems to be quite useful.
@Hofer-Julian It's a bit of a mixed experience:
Luckily, the result is somehow structured, so one does not need to look at all of the warnings. |
Interesting. I guess, we prefer tools anyway that have a CLI and can be easily run on the CI like |
most stuff was found by pycharm code checker.
commit 48af51f should fix some potential malfunction, that function is called without params rather often, thus site=None -> bug.