cosmit: black
This commit is contained in:
parent
a7b6a0560f
commit
188afa48f0
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue