# HG changeset patch # User Oleg Oshmyan # Date 1313619555 -10800 # Node ID 946e8c09ba1253400e5d8a225dfa177bef4d2bf8 # Parent 4edb6ef5a676cda0ee0c9b2fc00a48792400c1e6 Fixed single-problem configurations (regression in 32650f4a2177) diff -r 4edb6ef5a676 -r 946e8c09ba12 upreckon/config.py --- 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: