Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Aug 5, 2016
1 parent 5e5c43a commit 75b7bfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/pymyinstall/cli/pymy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ def do_main(temp_folder="build/update_modules",
pfolder = os.path.normpath(os.path.join(
os.path.abspath(os.path.dirname(__file__)), "..", ".."))
sys.path.append(pfolder)
from pymyinstall import is_travis_or_appveyor
try:
from pymyinstall import is_travis_or_appveyor
except ImportError as e:
mes = "Unable to import is_travis_or_appveyor from '{0}' after adding '{1}'.".format(__file__, pfolder)
raise ImportError(mes)
if is_travis_or_appveyor() and source is None:
source = "2"

Expand Down
6 changes: 5 additions & 1 deletion src/pymyinstall/cli/pymy_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ def do_main(temp_folder="build/update_modules",
pfolder = os.path.normpath(os.path.join(
os.path.abspath(os.path.dirname(__file__)), "..", ".."))
sys.path.append(pfolder)
from pymyinstall import is_travis_or_appveyor
try:
from pymyinstall import is_travis_or_appveyor
except ImportError as e:
mes = "Unable to import is_travis_or_appveyor from '{0}' after adding '{1}'.".format(__file__, pfolder)
raise ImportError(mes)
if is_travis_or_appveyor() and source is None:
source = "2"

Expand Down

0 comments on commit 75b7bfd

Please sign in to comment.