mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
scripts: storage: fixed exception handler for paths
This commit is contained in:
@@ -335,7 +335,9 @@ class FlipperStorage:
|
|||||||
|
|
||||||
def _check_no_error(self, response, path=None):
|
def _check_no_error(self, response, path=None):
|
||||||
if self.has_error(response):
|
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):
|
def size(self, path: str):
|
||||||
"""file size on Flipper"""
|
"""file size on Flipper"""
|
||||||
|
|||||||
Reference in New Issue
Block a user