MCPcopy Index your code
hub / github.com/diffgram/diffgram / commit_with_rollback

Function commit_with_rollback

shared/regular/regular_methods.py:21–26  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

19
20
21def commit_with_rollback(session):
22 try:
23 session.commit()
24 except:
25 session.rollback()
26 raise
27
28
29def clean_up_temp_dir(path):

Calls 1

commitMethod · 0.80