From 9f9208ad6e649ae4b250e3aa635cda8967e2cbe0 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Sat, 3 Aug 2024 07:30:24 -0600 Subject: [PATCH] Fixed empty kwargs throwing error --- subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen.py b/subgen.py index 965b112..d758064 100644 --- a/subgen.py +++ b/subgen.py @@ -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')