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

ENH: An improved error message when calling zipline api functions #1593

Merged
merged 1 commit into from Nov 11, 2016

Conversation

richafrank
Copy link
Member

outside of a running simulation. Previously, an AttributeError was
raised.

The goal here is to make the situation clearer for developers, for example: #1541 and #448 (comment)

What do folks think of the message?

outside of a running simulation. Previously, an AttributeError was
raised.
@ssanderson
Copy link
Contributor

👍 from me

@ssanderson
Copy link
Contributor

The only change I could maybe see here is adding a specific exception type for this (e.g. NoSimulationRunning) rather than RuntimeError. But I don't feel super strongly about it either way.

@llllllllll
Copy link
Contributor

+1 also, I think the runtime error is fine because I don't expect anyone to want to catch this

@richafrank
Copy link
Member Author

Ok, cool, then I'm going to merge on travis passing.

@coveralls
Copy link

coveralls commented Nov 11, 2016

Coverage Status

Coverage decreased (-0.004%) to 86.992% when pulling 1d2d6d8 on nicer-message into 8b8b4a8 on master.

@richafrank richafrank merged commit 54487ef into master Nov 11, 2016
@richafrank richafrank deleted the nicer-message branch November 11, 2016 22:22
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.

None yet

4 participants