Skip to content

Commit

Permalink
Added a minor bug that arose when a template isn't found.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbpoole committed Feb 16, 2018
1 parent 7e60ae5 commit 4c07e4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/gbpPy/gbpPy/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ def add(self,template_name,path=None):
path_list = self._build_path_list(path)

# Search the path
template_dir_abs=None
for path_i in path_list:
dir_test = os.path.join(path_i,template_name)
if(os.path.isdir(dir_test)):
Expand Down

0 comments on commit 4c07e4c

Please sign in to comment.