mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 22:34:10 +00:00
handle empty file as text file
This commit is contained in:
@@ -70,7 +70,7 @@ class Templategen:
|
|||||||
filetype = filetype.strip()
|
filetype = filetype.strip()
|
||||||
if self.debug:
|
if self.debug:
|
||||||
self.log.dbg('\"{}\" filetype: {}'.format(src, filetype))
|
self.log.dbg('\"{}\" filetype: {}'.format(src, filetype))
|
||||||
istext = 'text' in filetype
|
istext = 'text' in filetype or 'empty' in filetype
|
||||||
if self.debug:
|
if self.debug:
|
||||||
self.log.dbg('\"{}\" is text: {}'.format(src, istext))
|
self.log.dbg('\"{}\" is text: {}'.format(src, istext))
|
||||||
if not istext:
|
if not istext:
|
||||||
|
|||||||
Reference in New Issue
Block a user