Open glyg opened 3 years ago
of course I'm happy to open a PR for that if needed.
Thanks for reporting. It would certainly be nicer to have an explicit connection error here. But I realise that the same is true of almost all the methods on the BlitzGateway - You'll get some error if you try to call them before you're connected, but it's not handled uniformly anywhere.
I guess we could create an @assert_connected
decorator for all the methods we want to handle this, but that's probably a bigger job than you're looking for!?
I guess we could create an @assert_connected decorator for all the methods we want to handle this, but that's probably a bigger job than you're looking for!?
:smile: I can surely write the decorator, and apply it to getEventContext
, but I would let you judge where else to apply it!
Hi ome team,
I have an error when trying to use
suConn
This occurs if the BlitzGateway was not connected before
suConn
is called, as the_ctx
attribute is not created. Maybe a more explicit connection error could be raised in this case?