Skip to content

Commit

Permalink
Fix debug message location
Browse files Browse the repository at this point in the history
  • Loading branch information
3asm committed Feb 9, 2024
1 parent 1b5cda4 commit 87de760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pychrome/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
from .tab import *
from .exceptions import *

__version__ = "0.2.4"
__version__ = "0.2.5"
6 changes: 3 additions & 3 deletions pychrome/tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def _recv_loop(self):
try:
self._ws.settimeout(1)
message_json = self._ws.recv()
if self.debug: # pragma: no cover
print("< RECV %s" % message_json)

message = json.loads(message_json)
except websocket.WebSocketTimeoutException:
continue
Expand All @@ -130,9 +133,6 @@ def _recv_loop(self):
self._stopped.set()
return

if self.debug: # pragma: no cover
print("< RECV %s" % message_json)

if "method" in message:
self.event_queue.put(message)

Expand Down

0 comments on commit 87de760

Please sign in to comment.