beremiz

Fix LOCAL:// connector broken by last commit.
py2compat
15 months ago, Edouard Tisserant
4f070977607e
Parents b41b0b7c27d9
Children d1a283770b08
Fix LOCAL:// connector broken by last commit.
--- a/connectors/__init__.py Fri Mar 21 14:27:18 2025 +0100
+++ b/connectors/__init__.py Fri Mar 21 16:09:23 2025 +0100
@@ -104,12 +104,12 @@
else:
_scheme = _scheme.split("-")[0]
- if _scheme in connectors:
- scheme = _scheme
- elif _scheme[-1] == 'S' and _scheme[:-1] in connectors:
- scheme = _scheme[:-1]
- else:
- return None
+ if _scheme in connectors:
+ scheme = _scheme
+ elif _scheme[-1] == 'S' and _scheme[:-1] in connectors:
+ scheme = _scheme[:-1]
+ else:
+ return None
# import module according to uri type and get connector specific baseclass
# first call to import the module,