From 3afaf5592a0ae1bb80db1b68fd73131c70e34817 Mon Sep 17 00:00:00 2001
From: Aymeric Varasse <aymeric.varasse@cea.fr>
Date: Fri, 9 Jun 2023 09:28:54 +0000
Subject: [PATCH] [bin] Better python code style.

---
 bin/dummyversion.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/bin/dummyversion.py b/bin/dummyversion.py
index cc9ccf2..1ba1dfa 100755
--- a/bin/dummyversion.py
+++ b/bin/dummyversion.py
@@ -31,16 +31,16 @@ dummy_version = str(sys.argv[2])
 spec = importlib.util.find_spec(module_name)
 
 if spec is None:
-  # [module_name] cannot be found: most likely, the PYTHONPATH has not been
-  # correctly set up.
-  exit(1)
+    # [module_name] cannot be found: most likely, the PYTHONPATH has not been
+    # correctly set up.
+    exit(1)
 
 # [module_name] has been found. However, this is not sufficient to conclude that
 # its interpretation/execution will not fail, e.g., due to unmet dependencies.
 try:
-  import_module(module_name)
-except ModuleNotFoundError as error:
-  exit(1)
+    import_module(module_name)
+except ModuleNotFoundError:
+    exit(1)
 
 print(dummy_version)
-exit(0)
\ No newline at end of file
+exit(0)
-- 
GitLab