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

Catch any exception on old backend import #1192

Merged
merged 2 commits into from
Jun 6, 2017

Conversation

dmitriy-serdyuk
Copy link
Contributor

Theano 9.0 crashes when trying to import the old backend.

@dmitriy-serdyuk
Copy link
Contributor Author

@rizar, this is an important one.

@rizar
Copy link
Contributor

rizar commented Jun 6, 2017

Can you please change to "except Exception" in order not to catch KeyboardInterrupt and other stuff like that?

https://stackoverflow.com/questions/730764/try-except-in-python-how-do-you-properly-ignore-exceptions

After that, LGTM

@dmitriy-serdyuk
Copy link
Contributor Author

I wanted to say that KeyboardInterrupt never happens in import section, but considering the slowness of import of theano sometimes... I'll change it.

@rizar
Copy link
Contributor

rizar commented Jun 6, 2017 via email

@dmitriy-serdyuk dmitriy-serdyuk merged commit d0750a9 into mila-iqia:master Jun 6, 2017
@dmitriy-serdyuk dmitriy-serdyuk deleted the fix-backend branch June 6, 2017 01:21
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