From 9b9cae7024597755889d3fb30b9b8bef3f909ecb Mon Sep 17 00:00:00 2001
From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu>
Date: Mon, 21 Jun 2021 16:38:06 +0200
Subject: [PATCH] Improved dry run.

---
 climax/main/preprocess.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/climax/main/preprocess.py b/climax/main/preprocess.py
index f5f9c03..6f24d00 100644
--- a/climax/main/preprocess.py
+++ b/climax/main/preprocess.py
@@ -102,7 +102,7 @@ if __name__ == '__main__':
             # check whether to only print which files would be processed
             if args.dry_run:
                 LogConfig.init_log('Dry run. No files processed.')
-                sys.exit()
+                return
 
             # run reprojection in parallel
             target = Parallel(n_jobs=-1, verbose=51)(
-- 
GitLab