##// END OF EJS Templates
fix a NameError inside an exception
Paul Ivanov -
Show More
@@ -505,7 +505,6 b' class Application(SingletonConfigurable):'
505 505
506 506 yield each config object in turn.
507 507 """
508
509 508 pyloader = PyFileConfigLoader(basefilename+'.py', path=path, log=log)
510 509 jsonloader = JSONFileConfigLoader(basefilename+'.json', path=path, log=log)
511 510 config_found = False
@@ -519,7 +518,7 b' class Application(SingletonConfigurable):'
519 518 except Exception:
520 519 # try to get the full filename, but it will be empty in the
521 520 # unlikely event that the error raised before filefind finished
522 filename = loader.full_filename or filename
521 filename = loader.full_filename or basefilename
523 522 # problem while running the file
524 523 if log:
525 524 log.error("Exception while loading config file %s",
General Comments 0
You need to be logged in to leave comments. Login now