From 60feea37758fc67c2c29cf1ac348fc447c616b16 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 25 May 2019 16:50:19 +0200 Subject: [PATCH] wrong dict --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a409971..055b8dc 100644 --- a/main.py +++ b/main.py @@ -57,7 +57,7 @@ def main(): if envsraw is not None: prefix = 'PLUGIN_' # Take only the envs that start with PLUGIN_ and remore the prefix - envs = {k[len(prefix):]:v for k, v in a.items() if k.startswith(prefix)} + envs = {k[len(prefix):]:v for k, v in os.environ.items() if k.startswith(prefix)} if 'all' != envsraw or ',' in envsraw: # Make them uppercase