Skip to content

Commit

Permalink
handle the case where last_ts_processed is None
Browse files Browse the repository at this point in the history
got a TypeError here when we were experimenting with loading data for app store
review

Testing done:
- Reran the pipeline; the error went away
  • Loading branch information
shankari committed Sep 15, 2020
1 parent 02d23b2 commit 938568a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emission/analysis/intake/segmentation/trip_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def get_last_ts_processed(filter_methods):
if last_ts_processed is None or method.last_ts_processed > last_ts_processed:
last_ts_processed = method.last_ts_processed
logging.debug("Set last_ts_processed = %s from method %s" % (last_ts_processed, method))
except TypeError as e:
logging.debug("Processing method %s got error %s, skipping" % (method, e))
except AttributeError as e:
logging.debug("Processing method %s got error %s, skipping" % (method, e))
logging.info("Returning last_ts_processed = %s" % last_ts_processed)
Expand Down

0 comments on commit 938568a

Please sign in to comment.