mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 08:45:13 +00:00
fix: patterns might be None
This commit is contained in:
parent
e0a08c5cae
commit
ab76176553
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ def do_extract(self, args):
|
|||
if not args.dry_run:
|
||||
while dirs:
|
||||
archive.extract_item(dirs.pop(-1))
|
||||
for pattern in patterns:
|
||||
for pattern in (patterns or []):
|
||||
if isinstance(pattern, IncludePattern) and pattern.match_count == 0:
|
||||
self.print_error("Warning: Include pattern '%s' never matched.", pattern)
|
||||
return self.exit_code
|
||||
|
|
Loading…
Reference in a new issue