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

Commit

Permalink
Adding ["url"] to the line 48 of pyshorteners/shorteners/cuttly.py to…
Browse files Browse the repository at this point in the history
… solve to solve issue #150 (#151)
  • Loading branch information
bahmangm authored Mar 19, 2020
1 parent ca1d586 commit 8f34386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyshorteners/shorteners/cuttly.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def short(self, url):
"API response is invalid ,could not be decoded"
)

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

0 comments on commit 8f34386

Please sign in to comment.