From 6405beaebaf9c3978b9e5450c5f5fdb3f056c46e Mon Sep 17 00:00:00 2001 From: Philip Lundrigan Date: Thu, 14 Jul 2016 08:28:05 -0600 Subject: [PATCH] Fix if condition --- src/bitrot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitrot.py b/src/bitrot.py index bb0336c..f80cef2 100644 --- a/src/bitrot.py +++ b/src/bitrot.py @@ -280,7 +280,7 @@ class Bitrot(object): update_sha512_integrity() - if len(errors) > 0: + if errors: raise BitrotException( 1, 'There were {} errors found.'.format(len(errors)), errors, )