Skip to content

Commit 29bd23a

Browse files
committed
refactor: default to imports subdoc and ignore importerror
1 parent 5596c5b commit 29bd23a

5 files changed

Lines changed: 1008 additions & 956 deletions

File tree

docxtpl/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@
1212
from .listing import Listing
1313
from .richtext import RichText, R, RichTextParagraph, RP
1414
from .template import DocxTemplate
15+
try:
16+
from .subdoc import Subdoc
17+
except ImportError:
18+
...

0 commit comments

Comments
 (0)