File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11Changelog
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+
412v0.9.7
513------
614
Original file line number Diff line number Diff line change 3535from glob import glob
3636from itertools import takewhile
3737from locale import getpreferredencoding
38+ from socket import error as SocketError
3839from string import Template
3940from urllib import quote as urlquote
4041from 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
You can’t perform that action at this time.
0 commit comments