Terminating during startup -> boot loop

This commit is contained in:
2021-08-09 13:47:02 +02:00
parent a83d98c47e
commit 391ed747d3
2 changed files with 11 additions and 19 deletions
+2 -4
View File
@@ -38,14 +38,12 @@ def get_config_from_env():
try:
# load logging configuration
import conf.logging_settings
Registry.logger = Logger("core.registry")
bot = "config"
if len(sys.argv) > 1:
bot = f"{sys.argv[1]}"
else:
print(
"Unknown bot specified. Please edit your ##botname##.start.sh accordingly to the instructions found in the README.")
print("Unknown bot specified. Please edit your ##botname##.start.sh accordingly to the instructions found in the README.")
exit(0)
logger = Logger("core.bootstrap")
logger.info("Starting Tyrbot...")
@@ -68,7 +66,7 @@ try:
config = merge_dicts(config, env_config)
logger.info("Reading config from env vars")
else:
exit(-1)
pass
# ensure dimension is integer
if isinstance(config.server.dimension, str):
config.server.dimension = int(config.server.dimension)