Reformat files with black

This commit is contained in:
Orsiris de Jong 2023-05-31 14:17:04 +02:00
parent 1c4b72614e
commit 8fe7997e6f
2 changed files with 3 additions and 4 deletions

View file

@ -410,7 +410,7 @@ This is free software, and you are welcome to redistribute it under certain cond
logger.critical("No backend available. Cannot continue")
sys.exit(25)
logger.info("Backend: {}".format(npbackup_runner.backend_version))
if args.check:
if npbackup_runner.check_recent_backups():
sys.exit(0)

View file

@ -60,10 +60,9 @@ if __name__ == "__main__":
except (TypeError, KeyError):
port = None
logger = logger_get_logger()
# Cannot run gunicorn on Windows
if _DEV or os.name == 'nt':
if _DEV or os.name == "nt":
logger.info("Running dev version")
import uvicorn
@ -106,7 +105,7 @@ if __name__ == "__main__":
}
try:
if _DEV or os.name == 'nt':
if _DEV or os.name == "nt":
uvicorn.run("upgrade_server.api:app", **server_args)
else:
StandaloneApplication(upgrade_server.api.app, server_args).run()