mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
Passing test.
This commit is contained in:
parent
741af0b0eb
commit
d78e9d891d
@ -362,11 +362,12 @@ class BackupOptions(FileStoreOptions):
|
||||
line. The file is assumed to be in the argv encoding."""
|
||||
abs_filepath = argv_to_abspath(filepath)
|
||||
try:
|
||||
exclude_file = open(abs_filepath)
|
||||
exclude_file = open(abs_filepath, "rb")
|
||||
except Exception as e:
|
||||
raise BackupConfigurationError('Error opening exclude file %s. (Error: %s)' % (
|
||||
quote_local_unicode_path(abs_filepath), e))
|
||||
try:
|
||||
|
||||
for line in exclude_file:
|
||||
self.opt_exclude(line)
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user