Skip to content

Commit 41db358

Browse files
committed
declare file_path out of try/except
1 parent bdd2496 commit 41db358

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

admin_async_upload/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def get(self, request, *args, **kwargs):
4545

4646
def delete(self, request, *args, **kwargs):
4747
"""Handle file deletion via DELETE request."""
48+
file_path = None
4849
try:
4950
# Parse the file path from request body
5051
body = json.loads(request.body.decode('utf-8'))

0 commit comments

Comments
 (0)