Terminating during startup -> boot loop
This commit is contained in:
+2
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user