fix line lengths

This commit is contained in:
Jakub Trllo 2022-08-24 17:19:01 +02:00
parent bf8e2207e0
commit 310e9bf50f
2 changed files with 6 additions and 2 deletions

View file

@ -1504,7 +1504,9 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
if get_local_site_id() not in (local_site, remote_site):
# don't do upload/download for studio sites
self.log.debug("No local site {} - {}".format(local_site, remote_site))
self.log.debug(
"No local site {} - {}".format(local_site, remote_site)
)
return SyncStatus.DO_NOTHING
_, remote_rec = self._get_site_rec(sites, remote_site) or {}

View file

@ -171,7 +171,9 @@ class WebServerThread(threading.Thread):
]
list(map(lambda task: task.cancel(), tasks)) # cancel all the tasks
results = await asyncio.gather(*tasks, return_exceptions=True)
self.log.debug(f'Finished awaiting cancelled tasks, results: {results}...')
self.log.debug(
f'Finished awaiting cancelled tasks, results: {results}...'
)
await self.loop.shutdown_asyncgens()
# to really make sure everything else has time to stop
await asyncio.sleep(0.07)