Skip to content

Commit 06662c2

Browse files
committed
Cleaned up script
1 parent 3e45b0a commit 06662c2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Script Examples/addFile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
path1 = r"path-to-your-file"
33

44
try:
5-
with doc.BeginTransaction("test") as t1:
6-
doc.AppendFile(path1)
7-
t1.Commit()
8-
print "%s appended successfully" % path1
5+
with doc.BeginTransaction("test") as t1:
6+
doc.AppendFile(path1)
7+
t1.Commit()
8+
print "%s appended successfully" % path1
99
except Exception, ex:
10-
print str(ex)
10+
print str(ex)

0 commit comments

Comments
 (0)