We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a48a6 commit f557de7Copy full SHA for f557de7
src/commands/quoteCommand.ts
@@ -100,11 +100,16 @@ export class QuoteCommand extends Command {
100
});
101
102
const commandIssuerNick = await this.getAuthorNick(guild, interaction.user);
103
- const pullRequestNumber = await githubAPI.openFortunesPullRequest(
104
- fortunes,
105
- commandIssuerNick,
106
- nickname
107
- );
+ let pullRequestNumber;
+ try {
+ pullRequestNumber = await githubAPI.openFortunesPullRequest(
+ fortunes,
+ commandIssuerNick,
108
+ nickname
109
+ );
110
+ } catch (e) {
111
+ console.trace(e);
112
+ }
113
114
if (pullRequestNumber == undefined) {
115
const sadcaret = await getSadCaret(interaction);
0 commit comments