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
No known key found for this signature in database
GPG key ID: 7CCC66B7DBDD1C83

View file

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