coyotte508 HF Staff commited on
Commit
e91bcc6
·
1 Parent(s): a0fe71c

✨ More stability

Browse files
Files changed (1) hide show
  1. server.ts +5 -1
server.ts CHANGED
@@ -146,7 +146,11 @@ process.on("uncaughtException", console.error);
146
  async function run() {
147
  while (1) {
148
  console.log("looking up");
149
- await lookupTweets();
 
 
 
 
150
  await setTimeout(5_000);
151
  }
152
  }
 
146
  async function run() {
147
  while (1) {
148
  console.log("looking up");
149
+ try {
150
+ await lookupTweets();
151
+ } catch (err) {
152
+ console.error(err);
153
+ }
154
  await setTimeout(5_000);
155
  }
156
  }