Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boe/request_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_data_frame(
) -> pd.Series:
request_url = URL_BASE
resp = requests.get(request_url)
while ( not (resp.status_code == 200)):
while resp.status_code != 200:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function get_data_frame refactored with the following changes:

  • Simplify logical expression using De Morgan identities (de-morgan)

resp = requests.get(request_url)
try:
abc: Response = requests.get(request_url,cookies=resp.cookies)
Expand Down