You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
collection.exists() catches all exceptions and uses that to determine if a collection exists or not. This means that if an exception other than "collection not found" is raised, the api will simply return false.
In some case like unauthorized access, or another connection error this can be misleading and imply that a collection does not exist, when the collection does exist and the user either doesn't have access or some other error(like a network issue) cause the access to fail.
I think ideally this except block should only catch "collection-not-found" style errors and allow the other errors to bubble up to the user.