def get(self, list_id): try: scangroups = dumps(connector.GetScanGroupsByList(list_id)) return scangroups except Exception as ex: return '{"type":"error", "message":"' + GetException() + '"}'