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