Skip to content

Commit 80b18c5

Browse files
update Table._free to use autocommit check
1 parent 097579e commit 80b18c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iptc/ip4tc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,8 @@ def _free(self, ignore_exc=True):
13621362
if self._handle is None:
13631363
raise IPTCError("table is not initialized")
13641364
try:
1365-
self.commit()
1365+
if self.autocommit:
1366+
self.commit()
13661367
except IPTCError, e:
13671368
if not ignore_exc:
13681369
raise e

0 commit comments

Comments
 (0)