Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit 8f34386

Browse files
authored
Adding ["url"] to the line 48 of pyshorteners/shorteners/cuttly.py to solve to solve issue #150 (#151)
1 parent ca1d586 commit 8f34386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyshorteners/shorteners/cuttly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def short(self, url):
4545
"API response is invalid ,could not be decoded"
4646
)
4747

48-
status = response.json()["status"]
48+
status = response.json()["url"]["status"]
4949
if status == self.STATUS_INVALID:
5050
"""According to the API Docs when a status code of 4 is returned with
5151
json an Invalid API Key is provided"""

0 commit comments

Comments
 (0)