Skip to content

Commit

Permalink
python 2.7 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
krischer committed Apr 25, 2017
1 parent 1d78c9f commit 4d391af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instaseis/scripts/repack_db.py
Expand Up @@ -496,7 +496,7 @@ def repack_database(input_folder, output_folder, contiguous,
if input_folder == output_folder:
if "ordered_output.nc4" in [os.path.basename(_i) for _i in
found_filenames]:
raise FileExistsError()
raise ValueError("ordered_output.nc4 already exists.")
else:
os.makedirs(output_folder)

Expand Down

0 comments on commit 4d391af

Please sign in to comment.