Skip to content

Commit 4d391af

Browse files
committed
python 2.7 compat.
1 parent 1d78c9f commit 4d391af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

instaseis/scripts/repack_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def repack_database(input_folder, output_folder, contiguous,
496496
if input_folder == output_folder:
497497
if "ordered_output.nc4" in [os.path.basename(_i) for _i in
498498
found_filenames]:
499-
raise FileExistsError()
499+
raise ValueError("ordered_output.nc4 already exists.")
500500
else:
501501
os.makedirs(output_folder)
502502

0 commit comments

Comments
 (0)