Skip to content

Commit

Permalink
Fix previous import; Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
houtianze committed Mar 3, 2016
1 parent 7fe0740 commit 789bda6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Version History:

- 1.2.17: Fix UnicodeEncodeError on redirect; Add in retry on urllib3 TimeOutError
- 1.2.16: Add in proxy prompts
- 1.2.15: Fix a severe bug (accidental directory deletion) in `download` command intoduced in 1.2.14
- 1.2.14: Add in `download` command
Expand Down
11 changes: 6 additions & 5 deletions bypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from __future__ import division

### special variables that say about this module
__version__ = '1.2.16'
__version__ = '1.2.17'

### return (error) codes
# they are put at the top because:
Expand Down Expand Up @@ -199,10 +199,11 @@ def fixenc(stdenc):
try:
from requests.packages.urllib3.exceptions import ReadTimeoutError
except:
from urllib3.exceptions import ReadTimeoutError
else:
print("Something seems wrong with the urllib3 installation.\nQuitting")
onexit(EFatal)
try:
from urllib3.exceptions import ReadTimeoutError
except:
print("Something seems wrong with the urllib3 installation.\nQuitting")
sys.exit(EFatal)

# there was a WantWriteError uncaught exception for Urllib3:
# https://github.com/shazow/urllib3/pull/412
Expand Down

0 comments on commit 789bda6

Please sign in to comment.