no finally
This commit is contained in:
parent
d2b260b4ca
commit
db050590ba
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user