1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 12:38:50 +00:00

handle empty file as text file

This commit is contained in:
deadc0de6
2019-01-17 20:15:24 +01:00
parent 67b8fee18c
commit f78e3126f5

View File

@@ -70,7 +70,7 @@ class Templategen:
filetype = filetype.strip()
if self.debug:
self.log.dbg('\"{}\" filetype: {}'.format(src, filetype))
istext = 'text' in filetype
istext = 'text' in filetype or 'empty' in filetype
if self.debug:
self.log.dbg('\"{}\" is text: {}'.format(src, istext))
if not istext: