X Tutup
Skip to content

Commit 8aef6a7

Browse files
committed
Fix exception handling
1 parent 10c8b37 commit 8aef6a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/paste.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def paste(self, s: str) -> Tuple[str, str]:
5454
response = requests.post(url, json=payload, verify=True)
5555
response.raise_for_status()
5656
except requests.exceptions.RequestException as exc:
57-
raise PasteFailed(exc.message)
57+
raise PasteFailed(str(exc))
5858

5959
data = response.json()
6060

0 commit comments

Comments
 (0)
X Tutup