Skip to content

Commit

Permalink
Fix to pass linting checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonshaked committed Oct 27, 2020
1 parent 810fba1 commit 62ac842
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nextinspace/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Retrieve data from the LL2 API"""

import sys
import traceback
from datetime import date, datetime

import requests
Expand Down Expand Up @@ -228,7 +227,7 @@ def get_data(url, payload={}):
response = requests.get(url, params=payload)
try:
response.raise_for_status()
except requests.exceptions.HTTPError as e:
except requests.exceptions.HTTPError:
print(f"nextinspace: error: API request failed: status code {response.status_code}: {response.reason}")
sys.exit(1)
return response.json()

0 comments on commit 62ac842

Please sign in to comment.