Removed accidental raise in propic
This commit is contained in:
parent
15af64eb3b
commit
954a12e414
|
@ -48,7 +48,6 @@ async def upload_propic(request, order: Order):
|
||||||
img.thumbnail((512,512))
|
img.thumbnail((512,512))
|
||||||
img.save(f"res/propic/{fn}_{order.code}_{h}.jpg")
|
img.save(f"res/propic/{fn}_{order.code}_{h}.jpg")
|
||||||
except:
|
except:
|
||||||
raise
|
|
||||||
raise exceptions.BadRequest("The image you uploaded is not valid.")
|
raise exceptions.BadRequest("The image you uploaded is not valid.")
|
||||||
else:
|
else:
|
||||||
await order.edit_answer(fn, f"{fn}_{order.code}_{h}.jpg")
|
await order.edit_answer(fn, f"{fn}_{order.code}_{h}.jpg")
|
||||||
|
|
Loading…
Reference in New Issue