From d05e8cfd827d3019c575f272d866fa4f45c650a9 Mon Sep 17 00:00:00 2001 From: Hadrien Mary Date: Thu, 9 Oct 2025 06:43:18 -0400 Subject: [PATCH] Change protocol check to fallback for known implementations --- upath/_flavour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upath/_flavour.py b/upath/_flavour.py index 19eb62a3..d1460730 100644 --- a/upath/_flavour.py +++ b/upath/_flavour.py @@ -198,7 +198,7 @@ def from_protocol( except KeyError: pass # finally fallback to a default flavour for the protocol - if protocol in known_implementations: + if protocol not in known_implementations: warnings.warn( f"Could not find default for known protocol {protocol!r}." " Creating a default flavour for it. Please report this"