Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
linters
Browse files Browse the repository at this point in the history
  • Loading branch information
adrnswanberg committed Aug 9, 2020
1 parent b6d488a commit 57d594b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wandb/sdk/wandb_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def check_status(self):
while not join_requested:
status_result = (
# 'or False' because this could return None.
self._interface.send_status_sync(check_stop_req=True) or False
self._interface.send_status_sync(check_stop_req=True)
or False
)
if status_result.run_should_stop:
thread.interrupt_main()
Expand Down
5 changes: 4 additions & 1 deletion wandb/sdk_py27/wandb_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ def __init__(self, interface, polling_interval=15):
def check_status(self):
join_requested = False
while not join_requested:
status_result = self._interface.send_status_sync(check_stop_req=True)
status_result = (
# 'or False' because this could return None.
self._interface.send_status_sync(check_stop_req=True) or False
)
if status_result.run_should_stop:
thread.interrupt_main()
return
Expand Down

0 comments on commit 57d594b

Please sign in to comment.