def _get_meetings(self, committee_id, from_date, to_date): try: meetings = DataserviceCommitteeMeeting.get(committee_id, from_date, to_date) return meetings except Exception as e: err_msg = ERR_MSG.format(committee_id) err_msg_report = ERR_MSG_REPORT.format(committee_id, str(e)) DataserviceCommitteeMeeting.error_report(err_msg, err_msg_report) self._log_error(err_msg) return []
def _get_meetings(self, committee_id, from_date, to_date): try: meetings = DataserviceCommitteeMeeting.get(committee_id, from_date, to_date) return meetings except KnessetDataServiceRequestException as e: err_msg = ERR_MSG.format(committee_id) err_msg_report = ERR_MSG_REPORT.format(committee_id, str(e)) DataserviceCommitteeMeeting.error_report(err_msg, err_msg_report) self._log_error(err_msg) send_chat_exception_notification(__name__, "Failed to fetch from committee meetings knesset dataservice", {'committee_id': committee_id, 'from_date': from_date, 'to_date': to_date, 'url': e.url}, e) return []
def _get_meetings(self, committee_id, from_date, to_date): try: meetings = DataserviceCommitteeMeeting.get(committee_id, from_date, to_date) return meetings except Exception as e: err_msg = ERR_MSG.format(committee_id) err_msg_report = ERR_MSG_REPORT.format(committee_id, str(e)) DataserviceCommitteeMeeting.error_report(err_msg, err_msg_report) self._log_error(err_msg) send_chat_notification(__name__, "Received unexpected exception from DataServiceCommitteeMeeting.get()", {'exception': traceback.format_exc(), 'committee_id': committee_id, 'from_date': from_date, 'to_date': to_date}) return []
def _get_meetings(self, committee_id, from_date, to_date): try: meetings = DataserviceCommitteeMeeting.get(committee_id, from_date, to_date) return meetings except KnessetDataServiceRequestException as e: err_msg = ERR_MSG.format(committee_id) err_msg_report = ERR_MSG_REPORT.format(committee_id, str(e)) DataserviceCommitteeMeeting.error_report(err_msg, err_msg_report) self._log_error(err_msg) send_chat_exception_notification( __name__, "Failed to fetch from committee meetings knesset dataservice", { 'committee_id': committee_id, 'from_date': from_date, 'to_date': to_date, 'url': e.url }, e) return []