X Tutup
Skip to content

Commit 0d5990c

Browse files
committed
Merge
2 parents bc3ee15 + 10badb8 commit 0d5990c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
=========
33

4+
v0.9.7.1
5+
--------
6+
7+
A bugfix release. The fixed bugs are:
8+
9+
* #128: bpython-gtk is broken
10+
* #134: crash when using pastebin and no active internet connection
11+
412
v0.9.7
513
------
614

bpython/repl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from glob import glob
3636
from itertools import takewhile
3737
from locale import getpreferredencoding
38+
from socket import error as SocketError
3839
from string import Template
3940
from urllib import quote as urlquote
4041
from xmlrpclib import ServerProxy, Error as XMLRPCError
@@ -713,7 +714,7 @@ def pastebin(self, s=None):
713714
self.interact.notify('Posting data to pastebin...')
714715
try:
715716
paste_id = pasteservice.pastes.newPaste('pycon', s)
716-
except XMLRPCError, e:
717+
except (SocketError, XMLRPCError), e:
717718
self.interact.notify('Upload failed: %s' % (str(e), ) )
718719
return
719720

0 commit comments

Comments
 (0)
X Tutup