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)
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)