Skip to content

Commit

Permalink
Odata -> https
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Sep 25, 2024
1 parent c7435b8 commit fb51371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airflow/knesset_data_pipelines/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'laws': "http://knesset.gov.il/Odata_old/LawsData.svc",
'members': "http://knesset.gov.il/Odata_old/KnessetMembersData.svc",
'committees': "http://knesset.gov.il/Odata_old/CommitteeScheduleData.svc",
'api': 'http://knesset.gov.il/Odata/ParliamentInfo.svc/',
'api': 'https://knesset.gov.il/Odata/ParliamentInfo.svc/',
# these services use the old urls
'bills': "http://knesset.gov.il/KnessetOdataService/BillsData.svc",
'final_laws': "http://knesset.gov.il/KnessetOdataService/FinalLawsData.svc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def _get_response_content(cls, url, params, timeout, proxies, retry_num=1):
return get_retry_response_content(url, params, timeout, proxies, retry_num, num_retries, seconds_between_retries)
except Exception:
if url in [
'http://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_DocumentCommitteeSession?$skiptoken=450820L',
'http://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_DocumentCommitteeSession?$skiptoken=462074L',
'https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_DocumentCommitteeSession?$skiptoken=450820L',
'https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_DocumentCommitteeSession?$skiptoken=462074L',
]:
logging.info(traceback.format_exc())
return ''
Expand Down

0 comments on commit fb51371

Please sign in to comment.