From da415e5c6be6bb87134cd9c96f632910a7162204 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Tue, 15 Nov 2022 16:12:07 +0100 Subject: [PATCH] [Dockerapi] define matched var before use --- data/Dockerfiles/dockerapi/dockerapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/data/Dockerfiles/dockerapi/dockerapi.py b/data/Dockerfiles/dockerapi/dockerapi.py index 03ed5ef0..304c1781 100644 --- a/data/Dockerfiles/dockerapi/dockerapi.py +++ b/data/Dockerfiles/dockerapi/dockerapi.py @@ -499,6 +499,7 @@ class DockerUtils: async with rspamd_password_exec.start(detach=False) as stream: rspamd_password_return = await stream.read_out() + matched = False if "OK" in rspamd_password_return.data.decode('utf-8'): matched = True await container.restart()