Skip to content

Commit 6f63dc4

Browse files
committed
raise exception
1 parent 3a2767d commit 6f63dc4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spanner/google/cloud/spanner_v1/database.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,7 @@ def create(self):
210210
)
211211
except GaxError as exc:
212212
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
213+
raise exception
218214
return future
219215

220216
def exists(self):

0 commit comments

Comments
 (0)