Skip to content

Commit

Permalink
more printf debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikgro committed May 26, 2022
1 parent 511d38a commit de9f5eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webserver/alpha_business_app/handle_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ def handle_uploaded_file(request, uploaded_config) -> HttpResponse:
try:
content_as_dict = json.loads(file_content, object_pairs_hook=_dict_raise_on_duplicates)
except json.JSONDecodeError:
print('wrong 1')
return render(request, 'upload.html', {'error': 'Your JSON is not valid'})
except ValueError as value:
print('wrong 2')
return render(request, 'upload.html', {'error': str(value)})

validate_status, validate_data = validate_config(content_as_dict, False)
Expand Down

0 comments on commit de9f5eb

Please sign in to comment.