mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 20:09:18 +00:00
adding checks for #5
This commit is contained in:
@@ -32,6 +32,8 @@ class Templategen:
|
||||
comment_end_string=COMMENT_END)
|
||||
|
||||
def generate(self, src, profile):
|
||||
if not os.path.exists(src):
|
||||
return ''
|
||||
return self._handle_file(src, profile)
|
||||
|
||||
def _handle_file(self, src, profile):
|
||||
|
||||
Reference in New Issue
Block a user