mirror of
https://github.com/netinvent/npbackup.git
synced 2024-11-10 09:03:02 +08:00
Reformat file with black
This commit is contained in:
parent
cc147bb7fd
commit
3c6c6c5818
1 changed files with 4 additions and 2 deletions
|
@ -764,7 +764,7 @@ def _get_config_file_checksum(config_file: Path) -> str:
|
|||
"""
|
||||
It's nice to log checksums of config file to see whenever it was changed
|
||||
"""
|
||||
with open(config_file, 'rb') as fh:
|
||||
with open(config_file, "rb") as fh:
|
||||
hash = 0
|
||||
while True:
|
||||
s = fh.read(65536)
|
||||
|
@ -797,7 +797,9 @@ def _load_config_file(config_file: Path) -> Union[bool, dict]:
|
|||
f"Cannot read conf version from config file {config_file}, which seems bogus"
|
||||
)
|
||||
return False
|
||||
logger.info(f"Loaded config {_get_config_file_checksum(config_file)} in {config_file.absolute()}")
|
||||
logger.info(
|
||||
f"Loaded config {_get_config_file_checksum(config_file)} in {config_file.absolute()}"
|
||||
)
|
||||
return full_config
|
||||
except OSError:
|
||||
logger.critical(f"Cannot load configuration file from {config_file}")
|
||||
|
|
Loading…
Reference in a new issue