Mercurial > hg > MakeItSo
diff makeitso/makeitso.py @ 213:fa496c9e9d73
move away from assert to AssertionError
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 03 Dec 2015 12:54:17 -0800 |
parents | 0fd0cc154153 |
children | 407dd46857e1 |
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