1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-03-23 22:35:07 +00:00

ensure is file

This commit is contained in:
deadc0de6
2018-09-01 19:46:10 +02:00
parent 0065595237
commit f404888fb2

View File

@@ -92,7 +92,7 @@ class Templategen:
return data.decode('utf-8', 'replace') return data.decode('utf-8', 'replace')
def is_template(path): def is_template(path):
if not os.path.exists(path): if not os.path.isfile(path):
return False return False
with open(path, 'r') as f: with open(path, 'r') as f:
data = f.read() data = f.read()