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

unindent WebSocketHandler definition #90

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

j9ac9k
Copy link
Collaborator

@j9ac9k j9ac9k commented Apr 18, 2024

This addresses the issue where there is an isinstance check in del for the log handler that checks if the log handler is of type WebSocketHandler, and the WebSocketHandler is defined inside the else block that follows the attempt to import websocket and pythonjsonlogger. Since the WebSocketHandler class definition does not use anything from the websocket-client library directly, we can move the definition of it to be on the top level indent.

This addresses the issue where there is an isinstance check in __del__
for the log handler that checks if the log handler is of type
WebSocketHandler, and the WebSocketHandler is defined inside the else
block that follows the attempt to import websocket and pythonjsonlogger.
Since the WebSocketHandler class definition does not use anything from
the websocket-client library directly, we can move the definition of it
to be on the top level indent.
@j9ac9k j9ac9k merged commit c44cde3 into NCALM-UH:main Apr 18, 2024
4 checks passed
@j9ac9k j9ac9k deleted the unindent-websockethandler branch April 18, 2024 20:05
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.

1 participant