Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
327e1fe
1
Parent(s):
6503c40
....
Browse files- Powers/plugins/utils.py +1 -1
Powers/plugins/utils.py
CHANGED
@@ -297,7 +297,7 @@ headers = {
|
|
297 |
def paste(content: str):
|
298 |
data = {"content": content}
|
299 |
resp = resp_post(f"{BASE}api/v1/pastes", data=json.dumps(data), headers=headers)
|
300 |
-
if resp.ok:
|
301 |
return
|
302 |
resp = resp.json()
|
303 |
return BASE + resp["result"]['key']
|
|
|
297 |
def paste(content: str):
|
298 |
data = {"content": content}
|
299 |
resp = resp_post(f"{BASE}api/v1/pastes", data=json.dumps(data), headers=headers)
|
300 |
+
if not resp.ok:
|
301 |
return
|
302 |
resp = resp.json()
|
303 |
return BASE + resp["result"]['key']
|