diff --git a/src/twtxt.nim b/src/twtxt.nim index a9a78dc..b4951af 100644 --- a/src/twtxt.nim +++ b/src/twtxt.nim @@ -54,7 +54,9 @@ proc getTweetsFrom*(url: string, username: string): seq[Tweet] = for line in body.splitLines().items(): if line.len > 0 and line[0] != '#': - res.add(username.parseTweet(line)) + try: + res.add(username.parseTweet(line)) + except: echo username & " " & getCurrentExceptionMsg() return res @@ -68,4 +70,4 @@ proc updateTweetsByUser*(db: DBConn, username, url: string) {. gcsafe .} = db.exec(sql"insert into tweets values(null, ?, ?, ?);", username, tweet.date.timeInfoToTime().toSeconds().int(), tweet.message) except: discard except: - echo getCurrentExceptionMsg() + echo username & " " & getCurrentExceptionMsg()