Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Pass when multiple FormatVersions are returned
Browse files Browse the repository at this point in the history
  • Loading branch information
ablwr committed Aug 29, 2018
1 parent cb81525 commit 98e3851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fpr/management/commands/import_pronom_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def main(pronom_xml, output_format=SQL_OUTPUT, output_file=sys.stdout):
FormatVersion.objects.get(pronom_id=puid)
print('Ignoring {}'.format(puid))
continue
except FormatVersion.DoesNotExist:
except (FormatVersion.DoesNotExist, FormatVersion.MultipleObjectsReturned):
print('DOES NOT EXIST OK!')
pass

Expand Down

0 comments on commit 98e3851

Please sign in to comment.