From 4d391af254a7b23ed1ea04cd9f6f169ed1bc12f5 Mon Sep 17 00:00:00 2001 From: Lion Krischer Date: Tue, 25 Apr 2017 15:46:55 +0200 Subject: [PATCH] python 2.7 compat. --- instaseis/scripts/repack_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaseis/scripts/repack_db.py b/instaseis/scripts/repack_db.py index 3293f910..0c9ad659 100644 --- a/instaseis/scripts/repack_db.py +++ b/instaseis/scripts/repack_db.py @@ -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)