You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
which is probably not a good practice. I propose to define at least one library-specific exception and optionally other derived exceptions... Something like this:
class FanucPyException(Exception):
pass
class CommException(FanucPyException)
pass
Which will allow me (in the application code) to catch just the specific exception raised by the library, instead of the generic one.
Thanks for your consideration.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Right now, the
handle_response
raisesException
:fanucpy/src/fanucpy/Robot.py
Line 61 in 27a70d1
which is probably not a good practice. I propose to define at least one library-specific exception and optionally other derived exceptions... Something like this:
Which will allow me (in the application code) to catch just the specific exception raised by the library, instead of the generic one.
Thanks for your consideration.
The text was updated successfully, but these errors were encountered: