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

Too broad an exception is not a good idea #824

Merged
merged 2 commits into from
Jun 8, 2021
Merged

Too broad an exception is not a good idea #824

merged 2 commits into from
Jun 8, 2021

Conversation

Christian-B
Copy link
Member

@Christian-B Christian-B commented Jun 8, 2021

SpiNNakerManchester/SpiNNMan#249
Got away with removing a used Transceiver method due to an except:

All other places we use the pattern
except: # noqa: E722
some work is done and then the exception re raised

emergency_recover_states_from_failure
raise

@Christian-B Christian-B added the minor Not very important label Jun 8, 2021
@rowleya rowleya merged commit 69fede4 into master Jun 8, 2021
@rowleya rowleya deleted the bad_E722 branch June 8, 2021 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Not very important
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants