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

Commit

Permalink
fix wb-3383
Browse files Browse the repository at this point in the history
  • Loading branch information
raubitsj committed Sep 15, 2020
1 parent ee21e73 commit 78cc7c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions wandb/sdk/wandb_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,10 @@ def init(self):
run._set_run_obj_offline(run_proto)
else:
ret = backend.interface.communicate_check_version()
message = ret.response.check_version_response.message
if message:
wandb.termlog(message)
if ret and ret.response and ret.response.check_version_response:
message = ret.response.check_version_response.message
if message:
wandb.termlog(message)
ret = backend.interface.communicate_run(run, timeout=30)
# TODO: fail on more errors, check return type
# TODO: make the backend log stacktraces on catostrophic failure
Expand Down
7 changes: 4 additions & 3 deletions wandb/sdk_py27/wandb_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,10 @@ def init(self):
run._set_run_obj_offline(run_proto)
else:
ret = backend.interface.communicate_check_version()
message = ret.response.check_version_response.message
if message:
wandb.termlog(message)
if ret and ret.response and ret.response.check_version_response:
message = ret.response.check_version_response.message
if message:
wandb.termlog(message)
ret = backend.interface.communicate_run(run, timeout=30)
# TODO: fail on more errors, check return type
# TODO: make the backend log stacktraces on catostrophic failure
Expand Down

0 comments on commit 78cc7c7

Please sign in to comment.