diff --git a/gdrivefs/core.py b/gdrivefs/core.py index f82f78d..af03237 100644 --- a/gdrivefs/core.py +++ b/gdrivefs/core.py @@ -88,7 +88,7 @@ def connect(self, method=None): cred = self._connect_cache() elif method == 'anon': cred = AnonymousCredentials() - elif method is "service_account": + elif method == "service_account": cred = self._connect_service_account() else: raise ValueError(f"Invalid connection method `{method}`.")