mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
gracefully handle setAccountData failure
This commit is contained in:
parent
7dd98c0b98
commit
e518541fd0
@ -81,7 +81,11 @@ export class ReportPoll {
|
||||
|
||||
if (response.next_token !== undefined) {
|
||||
this.from = response.next_token;
|
||||
try {
|
||||
await this.mjolnir.client.setAccountData(REPORT_POLL_EVENT_TYPE, { from: response.next_token });
|
||||
} catch (ex) {
|
||||
await this.mjolnir.logMessage(LogLevel.ERROR, "getAbuseReports", `failed to update progress: ${ex}`);
|
||||
}
|
||||
}
|
||||
|
||||
this.schedulePoll();
|
||||
|
Loading…
Reference in New Issue
Block a user