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

Explicitly import "numpy" for "ArrayImage" import #1004

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

rahulporuri
Copy link
Contributor

This PR explicitly adds a numpy import before the ArrayImage import to ensure that an ImportError is raised instead of a TraitError, which will get caught and handled correctly by the _optional_import utility.

This was first observed thanks to the cron job - https://github.com/enthought/envisage/runs/3139307870

This commit explicitly adds a numpy import before the ArrayImage import
to ensure that an ImportError is raised instead of a TraitError, which will get
caught and handled correctly by the _optional_import utility
Copy link
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

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

LGTM

@rahulporuri rahulporuri removed the request for review from aaronayres35 July 23, 2021 09:35
@rahulporuri rahulporuri merged commit 6c98a1a into master Jul 23, 2021
@rahulporuri rahulporuri deleted the rahulporuri-patch-1 branch July 23, 2021 09:35
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