Skip to content

Commit

Permalink
[admin] Fixed FileNotFoundError while deleting a FirmwareImage openwi…
Browse files Browse the repository at this point in the history
…sp#140

Added a try/catch block in the return statement in `BuildAdmin` `change_view`

If a `FileNotFoundError` is caught, the file/directory from the error path
is recreated temperorily before recursively calling `change_view` again, to
complete the delete operation without throwing any errors.

Fixes openwisp#140
  • Loading branch information
AbhigyaShridhar committed Apr 26, 2022
2 parents 739f0a2 + a3e1263 commit ba9e1cf
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit ba9e1cf

Please sign in to comment.