Skip to content

Commit

Permalink
fix: don't let broken reference datasets break the metadata syncer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
niross authored Sep 1, 2023
1 parent 6d3acfc commit 9c5f1af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dataworkspace/dataworkspace/apps/datasets/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,10 @@ def data_last_updated(self):
"""
records = self.get_records()
if records.exists():
return records.latest("updated_date").updated_date
try:
return records.latest("updated_date").updated_date
except ProgrammingError:
pass
return None

@property
Expand Down

0 comments on commit 9c5f1af

Please sign in to comment.