Skip to content

Commit

Permalink
add print on upload file fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Oct 22, 2024
1 parent ec784cc commit dc85913
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions breathecode/media/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import hashlib
import json
import os
import traceback
from copy import copy
from io import BytesIO
from typing import Any, Optional, Tuple, overload
Expand Down Expand Up @@ -245,6 +246,7 @@ async def upload(self, academy_id: Optional[int] = None):
f.upload(chunk, content_type=chunk.content_type)

except Exception:
traceback.print_exc()
await instance.adelete()
raise ValidationException(
translation(
Expand Down

0 comments on commit dc85913

Please sign in to comment.