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 cf6c550 commit fb372e3Copy full SHA for fb372e3
bpython/paste.py
@@ -96,16 +96,16 @@ def paste(self, s):
96
97
if not paste_url:
98
raise PasteFailed(_("No output from helper program."))
99
- else:
100
- parsed_url = urlparse(paste_url)
101
- if not parsed_url.scheme or any(
102
- unicodedata.category(c) == "Cc" for c in paste_url
103
- ):
104
- raise PasteFailed(
105
- _(
106
- "Failed to recognize the helper "
107
- "program's output as an URL."
108
- )
+
+ parsed_url = urlparse(paste_url)
+ if not parsed_url.scheme or any(
+ unicodedata.category(c) == "Cc" for c in paste_url
+ ):
+ raise PasteFailed(
+ _(
+ "Failed to recognize the helper "
+ "program's output as an URL."
109
)
+ )
110
111
return paste_url, None
0 commit comments