Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong get_check_exists sample. No exception handling is required …
…anymore (#2429) * Fix wrong get_check_exists sample There are no more exceptions when no document found in DocumentReference.get() call. If the document does not exist at the time of the snapshot is taken, the snapshot’s reference, data, update_time, and create_time attributes will all be None and its exists attribute will be False. https://googleapis.github.io/google-cloud-python/latest/firestore/document.html#google.cloud.firestore_v1.document.DocumentReference.get Now issues googleapis/google-cloud-python#4530 and googleapis/google-cloud-python#4531 are resolved * removed unused exceptions import
- Loading branch information