mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-20 06:46:13 +08:00
Reformat files with black
This commit is contained in:
parent
1c4b72614e
commit
8fe7997e6f
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue