Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
danbugs committed Feb 18, 2024
2 parents 1864d7e + c5bc1fd commit 343a2f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ where
break 'inner;
}
Err(e) => {
if e.to_string()
.contains("Our services aren't available right now")
if e.to_string().contains("The response is [429]")
|| e.to_string()
.contains("Our services aren't available right now")
|| e.to_string().contains("error sending request for url")
{
// 429 (too many reqs) or outage, want to wait it out
Expand Down Expand Up @@ -139,7 +140,9 @@ where
continue;
} else {
// quit program, we have an error that we can't recover from
panic!("🤔 got 'Failed to parse' at page {}!", curr_page);
panic!(
"🚨 quitting program due to an error we can't recover from..."
);
}
} else {
maybe_sgv = maybe_sgv.update();
Expand Down

0 comments on commit 343a2f1

Please sign in to comment.