Skip to content

Commit

Permalink
better warning message on missing git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
emanjavacas committed Jan 17, 2019
1 parent dd6d107 commit 5ce77ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
__commit__ = GitInfo(__file__).get_commit()
except Exception:
import logging
logging.warn("Couldn't locate current `pie` commit, which is weird...")
logging.warn(
"""
It seems like you download `pie` instead of git-cloning it.
We won't be able to check compatibility between pretrained models and `pie` version
""")
__commit__ = None

from . import utils
Expand Down

0 comments on commit 5ce77ed

Please sign in to comment.