Skip to content

Commit 6d65f40

Browse files
committed
(slightly ugly) fix for pytables switching to custom error classes
1 parent 212e8f3 commit 6d65f40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pypop/prv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def _load_binarycache(self):
300300
try:
301301
self._read_binarycache(self._prv_path)
302302
self._no_prv = True
303-
except (ValueError, FileNotFoundError):
303+
except:
304304
# This will raise either ValueError or FileNotFoundError to be trapped and
305305
# handled by calling function
306306
self._read_binarycache(self._generate_binaryfile_name(self._prv_path))

pypop/trace/trace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def _parse_summary_file(filename):
225225

226226
tracemetadata = TraceMetadata.unpack_dataframe(file_metadata)
227227
statistics = hdfstore[Trace._statisticskey]
228-
except ValueError:
228+
except:
229229
raise WrongLoaderError('"{}" is not a PyPOP summary file'.format(filename))
230230

231231
return (tracemetadata, statistics)

0 commit comments

Comments
 (0)