X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbup%2Fhelpers.py;fp=lib%2Fbup%2Fhelpers.py;h=93bcc07387ff886e590350f6532f2fdb50219e4f;hb=fe29b7b749b2f339182fdec685c7adbb798234c1;hp=1b390c51dd51ea3f11481f2e55531a86cf0a62c4;hpb=a866d6734917ab6f5fab5949f9e761dcc4b981d0;p=bup.git diff --git a/lib/bup/helpers.py b/lib/bup/helpers.py index 1b390c5..93bcc07 100644 --- a/lib/bup/helpers.py +++ b/lib/bup/helpers.py @@ -835,6 +835,8 @@ def parse_rx_excludes(options, fatal): raise fatal("couldn't read %s" % parameter) for pattern in f.readlines(): spattern = pattern.rstrip('\n') + if not spattern: + continue try: excluded_patterns.append(re.compile(spattern)) except re.error, ex: