diff options
Diffstat (limited to 'fetcher.fnl')
| -rw-r--r-- | fetcher.fnl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fetcher.fnl b/fetcher.fnl index 7b46266..5670af9 100644 --- a/fetcher.fnl +++ b/fetcher.fnl @@ -44,7 +44,7 @@ (do (os.execute "sleep 1") (gather (+ page 1) (array.concat knil items))))) - (= 404 status) + (and (<= 300 status) (< status 500)) knil (retry #(gather page knil) 3 1))) @@ -92,7 +92,7 @@ (do (os.execute "sleep 1") (gather (+ 1 page) (array.concat knil items))))) - (= status 404) + (and (<= 300 status) (< status 500)) knil (retry #(gather page knil) 3 1))) |
