Commit e474a32
Fix wrong get_check_exists sample. No exception handling is required anymore (GoogleCloudPlatform#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 import1 parent c438ba1 commit e474a32
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | | - | |
221 | | - | |
| 219 | + | |
| 220 | + | |
222 | 221 | | |
223 | | - | |
| 222 | + | |
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
| |||
0 commit comments