[0.5.12] fix production no reload

This commit is contained in:
Maxime Alves LIRMM@home 2021-10-07 13:22:16 +02:00
parent f27b68e350
commit 8b88d7f1b4
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
__version__ = '0.5.11'
__version__ = '0.5.12'
def version():
return f'HalfAPI version:{__version__}'

View File

@ -29,7 +29,7 @@ def run(host, port, reload):
port = int(port)
if PRODUCTION:
if PRODUCTION and reload:
reload = False
raise Exception('Can\'t use live code reload in production')