You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by kr...@apache.org on 2022/02/18 15:44:56 UTC
[tinkerpop] branch master updated: Correct Python g.tx example CTR
This is an automated email from the ASF dual-hosted git repository.
krlawrence pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/master by this push:
new 9185c38 Correct Python g.tx example CTR
new a394405 Merge branch '3.5-dev'
9185c38 is described below
commit 9185c38d2e345ba94ca89bcb6d81a54083ce5e6a
Author: Kelvin Lawrence <gf...@yahoo.com>
AuthorDate: Fri Feb 18 09:31:59 2022 -0600
Correct Python g.tx example CTR
---
docs/src/reference/gremlin-variants.asciidoc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/src/reference/gremlin-variants.asciidoc b/docs/src/reference/gremlin-variants.asciidoc
index 36f27e2..85548d6 100644
--- a/docs/src/reference/gremlin-variants.asciidoc
+++ b/docs/src/reference/gremlin-variants.asciidoc
@@ -937,10 +937,10 @@ try:
# Commit the transaction. The transaction can no longer be used and cannot be re-used.
# A new transaction can be spawned through g.tx().
# The context of g remains sessionless throughout the process.
- gtx.commit()
-except Exception e:
+ tx.commit()
+except Exception as e:
# Rollback the transaction if an error occurs.
- gtx.rollback()
+ tx.rollback()
----