no finally

This commit is contained in:
Egor Matveev 2022-02-06 12:51:22 +03:00
parent d2b260b4ca
commit db050590ba

View File

@ -30,10 +30,10 @@ class Command(BaseCommand):
print(e) print(e)
solution.result = "TE" solution.result = "TE"
solution.save() solution.save()
finally: # finally:
path = join("solutions", str(id)) # path = join("solutions", str(id))
if exists(path): # if exists(path):
rmtree(path) # rmtree(path)
channel.basic_consume(queue="test", on_message_callback=callback, auto_ack=True) channel.basic_consume(queue="test", on_message_callback=callback, auto_ack=True)
channel.start_consuming() channel.start_consuming()