Skip to content

Commit

Permalink
Disable duplicate-code Pylint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
BECATRUE committed Apr 3, 2024
1 parent 4f9d773 commit 39f760d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iquip/apps/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def run(self):
try:
with connect(self.url) as websocket:
websocket.send(json.dumps(self.devices))
while True:
while True: # pylint: disable=duplicate-code
try:
response = websocket.recv(5)
except TimeoutError:
Expand Down
2 changes: 1 addition & 1 deletion iquip/apps/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def run(self):
"""
try:
with connect(self.url) as websocket:
while True:
while True: # pylint: disable=duplicate-code
try:
response = websocket.recv(5)
except TimeoutError:
Expand Down

0 comments on commit 39f760d

Please sign in to comment.