From bc198d1f9572436b98f6299d1aac4a080c0b4f7e Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 17 Jul 2019 20:12:53 +0200 Subject: Fix error when no excluded folders are given --- stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.py b/stats.py index c77eb6b..cb8ceb9 100755 --- a/stats.py +++ b/stats.py @@ -84,7 +84,7 @@ def main(): md = Maildir(args.location) for folder in md.list_folders(): - if 'exclude_folders' in args: + if args.exclude_folders is not None: if re.match(args.exclude_folders, folder): log_line('Skipping %s' % folder) continue -- cgit v1.2.3