Skip to content

Commit

Permalink
Return code can be a String. Something that needs to be fixed upstrea…
Browse files Browse the repository at this point in the history
…m, but for now, we can deal with this.
  • Loading branch information
rbur004 committed Aug 29, 2024
1 parent 8d9364d commit 733cb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlib/dropbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def dropbox_query(query:, query_data: '{}', trace: false, retry_count: 0, conten
puts JSON.pretty_generate(h) if trace
return h
rescue WIKK::WebBrowser::Error => e
if e.web_return_code == 429 || e.web_return_code == 500 # Too Many Requests or Bad server in Pool.
if e.web_return_code.to_i == 429 || e.web_return_code.to_i == 500 # Too Many Requests or Bad server in Pool.
retry_count += 1
sleep retry_count * 15
if retry_count <= 4
Expand Down

0 comments on commit 733cb11

Please sign in to comment.