Skip to content

Commit

Permalink
FIX: Fixes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
anmol098 committed Aug 2, 2020
1 parent 3f334bd commit 6461370
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion loc.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def run_query_v3(self, nameWithOwner):
request = requests.get(endPoint, headers=self.headers)
if request.status_code == 401:
raise Exception("Invalid token {}. {}".format(request.status_code, nameWithOwner))
return request.json()
elif request.status_code == 204:
return []
else:
return request.json()

def getQuarter(self, timeStamp):
month = datetime.datetime.fromtimestamp(timeStamp).month
Expand Down

0 comments on commit 6461370

Please sign in to comment.