Skip to content

Commit 6461370

Browse files
committed
FIX: Fixes #27
1 parent 3f334bd commit 6461370

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

loc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def run_query_v3(self, nameWithOwner):
3939
request = requests.get(endPoint, headers=self.headers)
4040
if request.status_code == 401:
4141
raise Exception("Invalid token {}. {}".format(request.status_code, nameWithOwner))
42-
return request.json()
42+
elif request.status_code == 204:
43+
return []
44+
else:
45+
return request.json()
4346

4447
def getQuarter(self, timeStamp):
4548
month = datetime.datetime.fromtimestamp(timeStamp).month

0 commit comments

Comments
 (0)