Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rudiejd committed Mar 11, 2024
1 parent 873399c commit 86a742c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ingestor/chalicelib/yankee.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from typing import Dict, Optional, Tuple
import requests
import time
import pandas as pd
import json
import boto3
from keys import YANKEE_API_KEY
Expand Down Expand Up @@ -57,7 +55,7 @@ def load_bus_positions() -> Optional[List[Dict]]:
except ClientError as ex:
if ex.response["Error"]["Code"] != "NoSuchKey":
raise
except Exception as ex:
except Exception as _:
print("Failed to get last shuttle positions")
raise

Expand Down Expand Up @@ -314,7 +312,7 @@ def create_travel_time(
shuttle_stops: List[Stop],
):
# don't write travel times with no start date
if last_update_date == None:
if last_update_date is None:
return

last_update_datetime = datetime.strptime(last_update_date, TIME_FORMAT)
Expand Down

0 comments on commit 86a742c

Please sign in to comment.