Fix bug when exclude pattern is None

This commit is contained in:
Fuxino
2023-05-31 19:07:50 +02:00
parent 0dd7b887f7
commit 06620a4dba
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -1,2 +1,3 @@
.idea/
__pycache__/
test/
+1
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')