Mercurial > ~astiob > upreckon > hgweb
changeset 207:946e8c09ba12
Fixed single-problem configurations (regression in 32650f4a2177)
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Thu, 18 Aug 2011 01:19:15 +0300 |
parents | 4edb6ef5a676 |
children | ede78fbd509a |
files | upreckon/config.py |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/upreckon/config.py Wed Aug 17 21:03:28 2011 +0300 +++ b/upreckon/config.py Thu Aug 18 01:19:15 2011 +0300 @@ -255,11 +255,12 @@ setattr(module, name, getattr(module, name, defaults_noerase[name])) if hasattr(module, 'tasknames'): module.problems = module.tasknames - # Iterable and mapping taskweights cause re-iteration over problems - try: - len(module.problems) - except Exception: - module.problems = tuple(module.problems) + if module.problems is not None: + # Iterable and mapping taskweights cause re-iteration over problems + try: + len(module.problems) + except Exception: + module.problems = tuple(module.problems) global globalconf globalconf = module try: