Fix bug when exclude pattern is None

This commit is contained in:
daniele 2023-05-31 19:07:50 +02:00
parent 0dd7b887f7
commit 06620a4dba
Signed by: fuxino
GPG Key ID: 981A2B2A3BBF5514
2 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.idea/
__pycache__/
test/

View File

@ -185,6 +185,7 @@ class Backup:
fp.write('\n')
with open(self._exclude_path, 'w') as fp:
if self.exclude is not None:
for e in self.exclude:
fp.write(e)
fp.write('\n')