Fixed empty kwargs throwing error

This commit is contained in:
McCloudS
2024-08-03 07:30:24 -06:00
committed by GitHub
parent 84817da5bf
commit 9f9208ad6e

View File

@@ -103,7 +103,7 @@ def update_env_variables():
custom_regroup = os.getenv('CUSTOM_REGROUP', 'cm_sl=84_sl=42++++++1')
detect_language_length = os.getenv('DETECT_LANGUAGE_LENGTH', 30)
skipifexternalsub = convert_to_bool(os.getenv('SKIPIFEXTERNALSUB', False))
kwargs = ast.literal_eval(os.getenv('SUBGEN_KWARGS', ''))
kwargs = ast.literal_eval(os.getenv('SUBGEN_KWARGS', '{}') or '{}')
set_env_variables('subgen.env')