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"