Skip to content

Commit

Permalink
quote deploy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kagrawal2 committed Dec 29, 2016
1 parent 80045d9 commit b7d9813
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/quoteManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ def get_quote(self, lang='en', key=None):
if response.getcode() == 200:

# Decoding JSON and fill Quote, if HTTP responce is OK
try:
print('data was received')
retrieved_data = json.loads(response.readall().decode('utf-8'))
print(retrieved_data)
return Quote(data=retrieved_data)
except:
return None
# try:
print('data was received')
retrieved_data = json.loads(response.readall().decode('utf-8'))
print(retrieved_data)
return Quote(data=retrieved_data)
# except:
# return None
else:
print('response returned none')
return None
Expand Down

0 comments on commit b7d9813

Please sign in to comment.