Skip to content

Commit 285fe1a

Browse files
committed
Merge PR #459 into 18.0
Signed-off-by lmignon
2 parents 87e522c + f795402 commit 285fe1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs_storage/models/fs_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def _get_protocols(self) -> list[tuple[str, str]]:
239239
try:
240240
cls = fsspec.get_filesystem_class(p)
241241
protocol.append((p, f"{p} ({cls.__name__})"))
242-
except ImportError as e:
242+
except Exception as e:
243243
_logger.debug("Cannot load the protocol %s. Reason: %s", p, e)
244244
return protocol
245245

@@ -273,7 +273,7 @@ def _get_options_protocol(self) -> list[tuple[str, str]]:
273273
try:
274274
fsspec.get_filesystem_class(p)
275275
protocol.append((p, p))
276-
except ImportError as e:
276+
except Exception as e:
277277
_logger.debug("Cannot load the protocol %s. Reason: %s", p, e)
278278
return protocol
279279

0 commit comments

Comments
 (0)