Skip to content

Do not use bare except: clauses #143

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

Merged
merged 1 commit into from
May 25, 2017
Merged

Conversation

andersk
Copy link
Contributor

@andersk andersk commented May 25, 2017

@@ -1310,7 +1310,7 @@ def display(a, precision=4):
st = expr[0].find('(') + 1
en = expr[0].rfind(')')
name = expr[0][st:en]
except:
except IndexError:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This probably can’t happen at all, but I left it for now to be safe.)

@pavanky pavanky merged commit 9162487 into arrayfire:devel May 25, 2017
@andersk andersk deleted the bare-except branch May 25, 2017 07:46
@pavanky
Copy link
Member

pavanky commented May 25, 2017

@andersk Forgot to say thanks :) I merged it when I was quite sleepy.

@pavanky pavanky added this to the 3.5 milestone Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants