@@ -79,7 +79,7 @@ def ls(self, path, detail=True, **kwargs):
7979 if e .error_code == "RESOURCE_DOES_NOT_EXIST" :
8080 raise FileNotFoundError (e .message ) from e
8181
82- raise e
82+ raise
8383 files = r ["files" ]
8484 out = [
8585 {
@@ -125,7 +125,7 @@ def makedirs(self, path, exist_ok=True):
125125 if e .error_code == "RESOURCE_ALREADY_EXISTS" :
126126 raise FileExistsError (e .message ) from e
127127
128- raise e
128+ raise
129129 self .invalidate_cache (self ._parent (path ))
130130
131131 def mkdir (self , path , create_parents = True , ** kwargs ):
@@ -171,7 +171,7 @@ def rm(self, path, recursive=False, **kwargs):
171171 # Using the same exception as the os module would use here
172172 raise OSError (e .message ) from e
173173
174- raise e
174+ raise
175175 self .invalidate_cache (self ._parent (path ))
176176
177177 def mv (
@@ -216,7 +216,7 @@ def mv(
216216 elif e .error_code == "RESOURCE_ALREADY_EXISTS" :
217217 raise FileExistsError (e .message ) from e
218218
219- raise e
219+ raise
220220 self .invalidate_cache (self ._parent (source_path ))
221221 self .invalidate_cache (self ._parent (destination_path ))
222222
@@ -299,7 +299,7 @@ def _create_handle(self, path, overwrite=True):
299299 if e .error_code == "RESOURCE_ALREADY_EXISTS" :
300300 raise FileExistsError (e .message ) from e
301301
302- raise e
302+ raise
303303
304304 def _close_handle (self , handle ):
305305 """
@@ -316,7 +316,7 @@ def _close_handle(self, handle):
316316 if e .error_code == "RESOURCE_DOES_NOT_EXIST" :
317317 raise FileNotFoundError (e .message ) from e
318318
319- raise e
319+ raise
320320
321321 def _add_data (self , handle , data ):
322322 """
@@ -346,7 +346,7 @@ def _add_data(self, handle, data):
346346 elif e .error_code == "MAX_BLOCK_SIZE_EXCEEDED" :
347347 raise ValueError (e .message ) from e
348348
349- raise e
349+ raise
350350
351351 def _get_data (self , path , start , end ):
352352 """
@@ -376,7 +376,7 @@ def _get_data(self, path, start, end):
376376 elif e .error_code in ["INVALID_PARAMETER_VALUE" , "MAX_READ_SIZE_EXCEEDED" ]:
377377 raise ValueError (e .message ) from e
378378
379- raise e
379+ raise
380380
381381 def invalidate_cache (self , path = None ):
382382 if path is None :
0 commit comments