[Dockerapi] define matched var before use

This commit is contained in:
FreddleSpl0it 2022-11-15 16:12:07 +01:00
parent c8f69ffe77
commit da415e5c6b

View File

@ -499,6 +499,7 @@ class DockerUtils:
async with rspamd_password_exec.start(detach=False) as stream: async with rspamd_password_exec.start(detach=False) as stream:
rspamd_password_return = await stream.read_out() rspamd_password_return = await stream.read_out()
matched = False
if "OK" in rspamd_password_return.data.decode('utf-8'): if "OK" in rspamd_password_return.data.decode('utf-8'):
matched = True matched = True
await container.restart() await container.restart()