From db050590ba23b190c25b916533544f52f0071a8d Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sun, 6 Feb 2022 12:51:22 +0300 Subject: [PATCH] no finally --- Main/management/commands/receive.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Main/management/commands/receive.py b/Main/management/commands/receive.py index a602181..03e325a 100644 --- a/Main/management/commands/receive.py +++ b/Main/management/commands/receive.py @@ -30,10 +30,10 @@ class Command(BaseCommand): print(e) solution.result = "TE" solution.save() - finally: - path = join("solutions", str(id)) - if exists(path): - rmtree(path) + # finally: + # path = join("solutions", str(id)) + # if exists(path): + # rmtree(path) channel.basic_consume(queue="test", on_message_callback=callback, auto_ack=True) channel.start_consuming()