mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-17 05:48:33 +00:00
scripts: storage: fixed exception handler for paths
This commit is contained in:
parent
5d98d2703b
commit
02c4b6d7e2
1 changed files with 3 additions and 1 deletions
|
@ -335,7 +335,9 @@ class FlipperStorage:
|
|||
|
||||
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"""
|
||||
|
|
Loading…
Add table
Reference in a new issue