original_docstring: Perform transaction and raise an error in any occurred.
docstring: Perform transaction and raise an error in any occurred.
docstring_tokens: Perform transaction and raise an error in any occurred .
code: def transaction_with_commit_on_errors():
      """Perform transaction and raise an error in any occurred."""
      error = None
      with traced_atomic_transaction():
          try:
              yield
          except DatabaseError:
              raise
          except Exception as e:
              error = e
      if error:
          raise error
code_tokens: def transaction_with_commit_on_errors ( ) : error = None with traced_atomic_transaction ( ) : try : yield except DatabaseError : raise except Exception as e : error = e if error : raise error
short_docstring: Perform transaction and raise an error in any occurred.
short_docstring_tokens: Perform transaction and raise an error in any occurred .
comment: """Perform transaction and raise an error in any occurred."""