def __new__(cls):
     with AccountManager.load.lock:
         if not AccountManager.load.called:
             raise RuntimeError(
                 "cannot instantiate %s before calling AccountManager.load"
                 % cls.__name__)
     return SettingsObject.__new__(cls)
Esempio n. 2
0
 def __new__(cls):
     with AccountManager.load.lock:
         if not AccountManager.load.called:
             raise RuntimeError("cannot instantiate %s before calling AccountManager.load" % cls.__name__)
         return SettingsObject.__new__(cls)