-
Notifications
You must be signed in to change notification settings - Fork 32
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
BlitzGateway.connect raise on error #207
base: master
Are you sure you want to change the base?
Conversation
The code changes certainly look plausible and helpful. |
This has not been included in merge-ci:
Re-opening to see if it goes green. A few thoughts on the API though:
|
Code looks good. I can test locally... |
Looks good (and useful).
I would like this to become the default (when we're ready to release a breaking change). |
@manics : any comments on any of the API comments here? |
I agree with @will-moore but isn't that still a breaking change which would have to wait for 6.0.0? |
And anything from #207 (comment)? In general, this is proposing adding API to an already pretty complicated class. It's worth brainstorming and getting the design, since it'll likely be around for a while. |
All seem reasonable, I don't have a preference. Anyone else? Alternatively if 6.0.0 is not too far off we could go for the breaking change, maybe even not have a parameter at all, i.e. always throw and the caller can catch the exception if required? |
Any more thoughts on what to do here? I agree the Is there a definite plan to refactor the |
I vote for changing the default behaviour to |
I'd like to see a few more API options to choose from on style based on the various points I've added.
My primary next wish-list-item would be to split gateway into submodules and then re-import everything back into the top-level namespace. Other than that I think a rewrite has only been mentioned "if necessary" Otherwise, 👍 for the new behavior. |
Adds a flag so that
BlitzGateway.connect
will always propagate an exception if thrown. The default behaviour remains unchanged: sometimes it'll raise, sometimes it won't.