diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index 27012c07c69e0baeebf384c4c70c1d382ef73367..1263b9736796cc16990e5bde3719762eaa3ccfd1 100644 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -2486,14 +2486,14 @@ def initialize(self): error=1) time.sleep(5) try: - TimerServer = sys.modules['Products.TimerService.timerserver.TimerServer'] + TimerServer = sys.modules['Products.TimerService.timerserver.TimerServer'] except KeyError: - try: # BBB - TimerServer = sys.modules['timerserver.TimerServer'] - except KeyError: - # There's no point installing ERP5 automatically - # if there's no timer service configured. - return + try: # BBB + TimerServer = sys.modules['timerserver.TimerServer'] + except KeyError: + # There's no point installing ERP5 automatically + # if there's no timer service configured. + return TimerRequest = TimerServer.TimerRequest def traverse(*args, **kw): del TimerRequest.traverse