cosmit: black

This commit is contained in:
Colin Goutte 2021-12-14 10:31:55 +01:00
parent a7b6a0560f
commit 188afa48f0
1 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ def main(
fetch=api_fetch,
forward=api_forward,
forward_error=forward_api_error,
pattern="relais_*"
pattern="relais_*",
):
loopcount = itertools.count().__next__
conf = config.read_config(kind="relais", pattern=pattern)
@ -101,12 +101,12 @@ def main(
try:
login(conf)
except Exception as E:
forward_error(conf,str(E))
forward_error(conf, str(E))
while loopcount() < maxloop:
try:
current = fetch(conf).json()
except Exception as E:
forward_error(conf,str(E))
forward_error(conf, str(E))
else:
forward(conf, current)