From 8e1af3d9f1a86e87baa7e2b2654aba794d9af07a Mon Sep 17 00:00:00 2001 From: msglm Date: Wed, 15 Feb 2023 08:40:29 -0600 Subject: when erroring when getting rss feed, the program now waits --- src/indeedwatcher.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/indeedwatcher.nim b/src/indeedwatcher.nim index 8c4a71e..a5d1ae7 100644 --- a/src/indeedwatcher.nim +++ b/src/indeedwatcher.nim @@ -84,7 +84,8 @@ for feed in feeds: rssFeedReply = getRSS(feed) except: if attempt < 3: - echo "Recieved an error: trying again..." + echo "Recieved an error: trying again in 30 seconds..." + sleep 30000 continue else: raise -- cgit v1.2.3