Skip to content

Commit

Permalink
Warn about Python version if bug is encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Mar 14, 2022
1 parent 8387536 commit d5b05b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions caw/movedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ def download_file(t: Tuple[Path, DownloadableFile]) -> int:
except requests.exceptions.RequestException as e:
typer.secho(f'Failed to download {remote_file.file_resource}: {str(e)}',
fg=typer.colors.RED, err=True)
if sys.version_info.minor < 10:
typer.secho(
'This is probably a bug in Python itself. '
'See https://github.com/FNNDSC/caw/issues/12',
fg=typer.colors.YELLOW, err=True
)
pool.shutdown(cancel_futures=True) # fail fast
raise typer.Abort()
progress.update(1)
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='caw',
version='0.6.1a2',
version='0.6.1',
packages=find_packages(exclude=('*.tests',)),
url='https://github.com/FNNDSC/caw',
license='MIT',
Expand All @@ -28,4 +28,3 @@
'Topic :: Scientific/Engineering :: Medical Science Apps.'
]
)

0 comments on commit d5b05b2

Please sign in to comment.