# HG changeset patch # User Jeff Hammel # Date 1449176057 28800 # Node ID fa496c9e9d7300e38efc753a1350b0e8d662c62b # Parent cffc729926b958fd64835fc65a483136be1394c5 move away from assert to AssertionError diff -r cffc729926b9 -r fa496c9e9d73 makeitso/makeitso.py --- 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