Skip to content

Commit 0e24796

Browse files
committed
catch error in update user data get last updated timestamp
1 parent e466b87 commit 0e24796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapswipe_workers/mapswipe_workers/firebase_to_postgres/update_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_last_updated_timestamp() -> str:
2020
last_updated = last_updated[0][0]
2121
last_updated = last_updated.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
2222
logger.info("Last updated users: {0}".format(last_updated))
23-
except IndexError:
23+
except (IndexError, AttributeError):
2424
logger.exception("Could not get last timestamp of users.")
2525
sentry.capture_exception()
2626
last_updated = ""

0 commit comments

Comments
 (0)