Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dcm2bids/utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def check_github_latest(github_repo, timeout=3):
"your machine is probably not connected to the Internet.")
logger.debug(f"Reason {e.reason}")
return "no_internet"
except TimeoutError as e:
logger.warning(f"Timeout")
logger.debug(f"Socket timeout: {e}")
return "no_internet"
else:
content = json.loads(response.read())
return content["tag_name"]
Expand Down
Loading