##// END OF EJS Templates
templater: selecting a style with no templates does not crash (issue4140)...
Simon Heimberg -
r20312:268a5ab5 stable
parent child Browse files
Show More
@@ -447,8 +447,10 b' class engine(object):'
447 engines = {'default': engine}
447 engines = {'default': engine}
448
448
449 def stylelist():
449 def stylelist():
450 path = templatepath()[0]
450 paths = templatepath()
451 dirlist = os.listdir(path)
451 if not paths:
452 return _('no templates found, try `hg debuginstall` for more info')
453 dirlist = os.listdir(paths[0])
452 stylelist = []
454 stylelist = []
453 for file in dirlist:
455 for file in dirlist:
454 split = file.split(".")
456 split = file.split(".")
General Comments 0
You need to be logged in to leave comments. Login now