mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +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):
|
||||
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"""
|
||||
|
||||
Reference in New Issue
Block a user