Skip to content

Commit

Permalink
[cocopp] improve error message addressing #2312
Browse files Browse the repository at this point in the history
  • Loading branch information
nikohansen committed Jul 3, 2024
1 parent b05f92b commit 9fffa5a
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 @@ -753,7 +753,11 @@ def get_extended(self, args, remote=True):
warnings.warn('COCODataArchive failed to locate "%s".\n'
'Will try again after updating from %s'
% (name, self.remote_data_path))
self.update()
try:
self.update()
except Exception as e:
warnings.warn("Updating archive definitions failed with \n\n {}: {}\n\n You may want to check your WWW connectivity."
.format(str(type(e)).split("'")[1].split("'")[0], e))
res.extend(more)
if len(args) != len(set(args)):
warnings.warn("Several data arguments point to the very same "
Expand Down

0 comments on commit 9fffa5a

Please sign in to comment.