mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Formatting
This commit is contained in:
parent
cd2445b991
commit
8550475548
4 changed files with 8 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ cli_logger = logging.getLogger(__name__)
|
||||||
click_log.basic_config("vdirsyncer")
|
click_log.basic_config("vdirsyncer")
|
||||||
|
|
||||||
# add short option for the help option
|
# add short option for the help option
|
||||||
click_context_settings = dict(help_option_names=['-h', '--help'])
|
click_context_settings = {"help_option_names": ["-h", "--help"]}
|
||||||
|
|
||||||
|
|
||||||
class AppContext:
|
class AppContext:
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,9 @@ class FilesystemStorage(Storage):
|
||||||
logger.warning(f"Error executing external hook: {str(e)}")
|
logger.warning(f"Error executing external hook: {str(e)}")
|
||||||
|
|
||||||
def _run_pre_deletion_hook(self, fpath):
|
def _run_pre_deletion_hook(self, fpath):
|
||||||
logger.info(f"Calling pre_deletion_hook={self.pre_deletion_hook} with argument={fpath}")
|
logger.info(
|
||||||
|
f"Calling pre_deletion_hook={self.pre_deletion_hook} with argument={fpath}"
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
subprocess.call([self.pre_deletion_hook, fpath])
|
subprocess.call([self.pre_deletion_hook, fpath])
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue