We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5950e commit f096dd5Copy full SHA for f096dd5
bpython/repl.py
@@ -716,7 +716,12 @@ def pastebin(self, s=None):
716
self.interact.notify("Pastebin aborted")
717
return
718
719
- pasteservice = ServerProxy(self.config.pastebin_url)
+ try:
720
+ pasteservice = ServerProxy(self.config.pastebin_url)
721
+ except IOError, e:
722
+ self.interact.notify("Pastebin error for URL '%s': %s" %
723
+ (self.config.pastebin_url, str(e)))
724
+ return
725
726
if s == self.prev_pastebin_content:
727
self.interact.notify('Duplicate pastebin. Previous URL: ' +
0 commit comments