1
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:
hedger
2023-04-23 04:49:03 +04:00
committed by MX
parent 5d98d2703b
commit 02c4b6d7e2

View File

@@ -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"""