Skip to content

Commit 6428a3b

Browse files
committed
hotfix for failure on missing pypopsummary file
1 parent 4a98063 commit 6428a3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pypop/trace/trace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def load(filename, force_recalculation=False, **kwargs):
5555
Trace.get_summary_filename(filename), **kwargs
5656
)
5757
# Fallback - assume valid trace with no summary
58-
except WrongLoaderError:
58+
except (WrongLoaderError, FileNotFoundError):
5959
pass
6060

6161
# Otherwise iterate to find a suitable loader
@@ -111,7 +111,7 @@ def __init__(self, filename, force_recalculation=False, **kwargs):
111111
self._summaryfile = Trace.get_summary_filename(filename)
112112
return
113113
# Fallback - drop into full tracefile loader
114-
except WrongLoaderError:
114+
except (WrongLoaderError, FileNotFoundError):
115115
pass
116116

117117
self._metadata = TraceMetadata(self)

0 commit comments

Comments
 (0)