Skip to content

Commit

Permalink
fix: a bit more resilient version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
satra committed Sep 4, 2019
1 parent e3f7b81 commit adb88e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch-slim
FROM ubuntu:16.04
ARG DEBIAN_FRONTEND="noninteractive"
ENV LANG="C.UTF-8" \
LC_ALL="C.UTF-8"
Expand Down
10 changes: 8 additions & 2 deletions kwyk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ def predict(*, infile, outprefix, model, n_samples, batch_size, save_variance, s
If you encounter out-of-memory issues, use a lower batch size value.
"""
latest = etelemetry.get_project("neuronets/kwyk")["version"]
print(f"Your version: {__version__} Latest version: {latest}")
try:
latest = etelemetry.get_project("neuronets/kwyk")
except RuntimeError as e:
print("Could not check for version updates: ", e)
else:
if latest and 'version' in latest:
print("Your version: {0} Latest version: {1}".format(__version__,
latest["version"]))

_orig_infile = infile

Expand Down

0 comments on commit adb88e3

Please sign in to comment.