def load_freshmen() -> list: freshmen = [] from etc.cfg_bots import load_freshmen as _loader array = _loader() if array is not None: for item in array: identifier = g_facebook.identifier(item) if identifier is None: Log.error('ID error: %s' % item) elif identifier.type.is_user(): freshmen.append(identifier) else: Log.error('Not a user ID: %s' % identifier) return freshmen
def error(self, msg: str): Log.error('%s ERROR:\t%s' % (self.__class__.__name__, msg))