Skip to content

Commit

Permalink
YDA-5992: catch all exceptions when loading text data object
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Nov 28, 2024
1 parent d64a41a commit ee1fb91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,5 @@ def api_load_text_obj(ctx, file_path='/'):
return api.Error('large_size', 'The given text file is too large to render')
except error.UUError:
return api.Error('ReadError', 'Could not retrieve file')
except Exception:
return api.Error('not_valid', 'The given data object is not a text file')

0 comments on commit ee1fb91

Please sign in to comment.