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 0845925 commit f960b41Copy full SHA for f960b41
neo4j/v1/api.py
@@ -467,11 +467,8 @@ def is_retriable_transientError(error):
467
"""
468
:type error: TransientError
469
470
- if (error.code != "Neo.TransientError.Transaction.Terminated"
471
- and error.code != "Neo.TransientError.Transaction.LockClientStopped"):
472
- return True
473
- else:
474
- return False
+ return not (error.code in ("Neo.TransientError.Transaction.Terminated",
+ "Neo.TransientError.Transaction.LockClientStopped"))
475
476
477
class Transaction(object):
0 commit comments