Skip to content

Commit

Permalink
scripts: storage: fixed exception handler for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hedger authored and xMasterX committed Apr 23, 2023
1 parent 5d98d27 commit 02c4b6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/flipper/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ def exist_file(self, path: str):

def _check_no_error(self, response, path=None):
if self.has_error(response):
raise FlipperStorageException.from_error_code(self.get_error(response))
raise FlipperStorageException.from_error_code(
path, self.get_error(response)
)

def size(self, path: str):
"""file size on Flipper"""
Expand Down

0 comments on commit 02c4b6d

Please sign in to comment.