From a3b1e721b2c67348f0b850eda507995feebbe41c Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Thu, 28 Jan 2021 14:16:02 +0100 Subject: [PATCH] ocrd-cli: fix indentation --- sbb_binarize/ocrd_cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbb_binarize/ocrd_cli.py b/sbb_binarize/ocrd_cli.py index 34f16b3..7f88dfc 100644 --- a/sbb_binarize/ocrd_cli.py +++ b/sbb_binarize/ocrd_cli.py @@ -48,9 +48,9 @@ class SbbBinarizeProcessor(Processor): if 'SBB_BINARIZE_DATA' in environ and environ['SBB_BINARIZE_DATA']: LOG.info("Environment variable SBB_BINARIZE_DATA is set to '%s' - prepending to model value '%s'. If you don't want this mechanism, unset the SBB_BINARIZE_DATA environment variable.", environ['SBB_BINARIZE_DATA'], model_path) model_path = Path(environ['SBB_BINARIZE_DATA']).joinpath(model_path) - model_path = model_path.resolve() - if not model_path.is_dir(): - raise FileNotFoundError("Does not exist or is not a directory: %s" % model_path) + model_path = model_path.resolve() + if not model_path.is_dir(): + raise FileNotFoundError("Does not exist or is not a directory: %s" % model_path) kwargs['parameter']['model'] = str(model_path) super().__init__(*args, **kwargs)