Reformat file with blaxk

This commit is contained in:
Orsiris de Jong 2023-02-08 09:22:01 +01:00
parent 3075e6767e
commit 3ea482d29e

View file

@ -159,7 +159,9 @@ def restic_output_2_metrics(restic_result, output, labels=None):
)
errors = True
except IndexError as exc:
logger.warning("Cannot parse restic log for added data: {}".format(exc))
logger.warning(
"Cannot parse restic log for added data: {}".format(exc)
)
errors = True
matches = re.match(
@ -199,7 +201,9 @@ def restic_output_2_metrics(restic_result, output, labels=None):
errors = True
except IndexError as exc:
logger.error("Trace:", exc_info=True)
logger.warning("Cannot parse restic log for repo size: {}".format(exc))
logger.warning(
"Cannot parse restic log for repo size: {}".format(exc)
)
errors = True
matches = re.match(
r"Failure|Fatal|Unauthorized|no such host|s there a repository at the following location\?",