Skip to content

Commit

Permalink
fix cocopp.archives.update_all error on 'test' archive
Browse files Browse the repository at this point in the history
  • Loading branch information
nikohansen committed Nov 17, 2020
1 parent d21e82e commit 82b9b59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code-postprocessing/cocopp/archiving.py
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,11 @@ def update_all(self):
# self.set_as_attributes_in(update=True)
for name in self.names:
name = name.replace('-', '_')
getattr(self, name).update()
try:
getattr(self, name).update()
except AttributeError:
if name != 'test':
raise

official_archives = OfficialArchives()
# TODO-decide: when should we (try to) update these?
Expand Down

0 comments on commit 82b9b59

Please sign in to comment.