summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-02-15 08:40:29 -0600
committermsglm <msglm@techchud.xyz>2023-02-15 08:40:29 -0600
commit8e1af3d9f1a86e87baa7e2b2654aba794d9af07a (patch)
tree1788b4e04ac544fad299efcb965409e9951b2956 /src
parentc0f5799ae651b0ee3651e20302446475bcac17e0 (diff)
downloadindeedwatcher-8e1af3d9f1a86e87baa7e2b2654aba794d9af07a.tar.gz
indeedwatcher-8e1af3d9f1a86e87baa7e2b2654aba794d9af07a.tar.bz2
indeedwatcher-8e1af3d9f1a86e87baa7e2b2654aba794d9af07a.zip
when erroring when getting rss feed, the program now waits
Diffstat (limited to 'src')
-rw-r--r--src/indeedwatcher.nim3
1 files changed, 2 insertions, 1 deletions
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