Skip to content

Commit

Permalink
Handle exceptions in getIssues
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jan 16, 2024
1 parent df72d49 commit 7fb0237
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/src/client/mixins.js
Expand Up @@ -82,7 +82,12 @@ const WithIssues = (superclass, object_path) => class extends superclass {
*/
async getIssues() {
const proxy = await this.client.proxy(ISSUES_IFACE, object_path);
return proxy.All.map(buildIssue);
try {
return proxy.All.map(buildIssue);
} catch (e) {
console.log(`Could not get the list of issues: ${e}`);
return [];
}
}

/**
Expand Down

0 comments on commit 7fb0237

Please sign in to comment.