]> git.ipfire.org Git - nitsi.git/commitdiff
Raise exception instead of dropping them
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Mon, 21 May 2018 08:03:36 +0000 (10:03 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Mon, 21 May 2018 08:03:36 +0000 (10:03 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/nitsi/test.py
src/nitsi/virtual_environ.py

index 497b017589c09b90088a2c735d1b777991cca8b4..42d7f16ec6640de8b62eede4e85987ea5636b5c5 100755 (executable)
@@ -23,6 +23,7 @@ class test():
             self.log = logger.getChild(os.path.basename(self.path))
         except BaseException as e:
             logger.error("Could not get absolute path")
+            raise e
 
         self.log.debug("Path of this test is: {}".format(self.path))
 
index f375cd60a6b9ae3dd8b2c49470e244d2086802e7..3f7493300728f2a59489ddff92d8b17ffcb8ff82 100644 (file)
@@ -19,6 +19,7 @@ class virtual_environ():
             self.path = os.path.abspath(path)
         except BaseException as e:
             self.log.error("Could not get absolute path")
+            raise e
 
         self.log.debug(self.path)
 
@@ -53,6 +54,7 @@ class virtual_environ():
             self.con = libvirt.open(self.uri)
         except BaseException as error:
             self.log.error("Could not connect to: {}".format(self.uri))
+            raise error
 
         self.log.debug("Connected to: {}".format(self.uri))