Skip to content

Commit

Permalink
fix python version in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sirfoga committed Oct 12, 2018
1 parent 3259d02 commit 485977a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sudo: false
language: "python"
python:
- "3.6"
install:
- "pip3 install -U pip" # upgrade pip
- "pip3 install codecov pytest pytest-cov" # test coverage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.2.3 (3de91abc839bf92fcc726bb4aa0d7cb75ef0d362)
10.2.3 (a3598ce79ae74bb18a671a37286ef51a10095617)
2 changes: 1 addition & 1 deletion hal/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__description__ = 'Your swiss knife to perform fast and easy pythonic stuff'
__url__ = 'https://sirfoga.github.io/pyhal/'
__version__ = '10.2.3'
__build__ = '3de91abc839bf92fcc726bb4aa0d7cb75ef0d362'
__build__ = 'a3598ce79ae74bb18a671a37286ef51a10095617'
__author__ = 'Stefano Fogarollo'
__author_email__ = 'sirfoga@protonmail.com'
__license__ = 'MIT'
Expand Down
12 changes: 6 additions & 6 deletions hal/streams/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ def get_number(self, question,
if just_these:
if user_answer in just_these:
return user_answer
else:
exc = "Number cannot be accepted. Just these: "
exc += str(just_these)
raise Exception(exc)
else:
return user_answer

exc = "Number cannot be accepted. Just these: "
exc += str(just_these)
raise Exception(exc)

return user_answer

exc = "Number is not within limits. "
exc += "Min is " + str(min_i) + ". Max is " + str(max_i) + ""
Expand Down

0 comments on commit 485977a

Please sign in to comment.