changeset 213:fa496c9e9d73

move away from assert to AssertionError
author Jeff Hammel <k0scist@gmail.com>
date Thu, 03 Dec 2015 12:54:17 -0800
parents cffc729926b9
children 1a7ed3c940b9
files makeitso/makeitso.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/makeitso.py	Thu Dec 03 11:19:00 2015 -0800
+++ b/makeitso/makeitso.py	Thu Dec 03 12:54:17 2015 -0800
@@ -246,7 +246,8 @@
         """
         checks output for validity
         """
-        assert output # must provide output
+        if not output:
+            raise AssertionError("Must provide output")
         if os.path.exists(output):
             assert os.path.isdir(output), "%s: Must be a directory" % self.name