We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a2767d commit 6f63dc4Copy full SHA for 6f63dc4
spanner/google/cloud/spanner_v1/database.py
@@ -210,11 +210,7 @@ def create(self):
210
)
211
except GaxError as exc:
212
exception = exceptions.from_grpc_error(exc.cause)
213
- if exception.grpc_status_code == StatusCode.ALREADY_EXISTS:
214
- raise Conflict(self.name)
215
- elif exception.grpc_status_code == StatusCode.NOT_FOUND:
216
- raise exception.errors[0]
217
- raise
+ raise exception
218
return future
219
220
def exists(self):
0 commit comments