Commit
·
e91bcc6
1
Parent(s):
a0fe71c
✨ More stability
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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 |
}
|