File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
application/src/main/java/org/togetherjava/tjbot/commands/github Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 9
9
import net .dv8tion .jda .api .events .message .MessageReceivedEvent ;
10
10
import org .apache .commons .collections4 .ListUtils ;
11
11
import org .kohsuke .github .*;
12
+ import org .slf4j .Logger ;
13
+ import org .slf4j .LoggerFactory ;
12
14
13
15
import org .togetherjava .tjbot .config .Config ;
14
16
import org .togetherjava .tjbot .features .MessageReceiverAdapter ;
34
36
*/
35
37
public final class GitHubReference extends MessageReceiverAdapter {
36
38
static final String ID_GROUP = "id" ;
39
+ private static final Logger logger = LoggerFactory .getLogger (GitHubReference .class );
37
40
38
41
/**
39
42
* The pattern(#123) used to determine whether a message is referencing an issue.
@@ -86,7 +89,9 @@ private void acquireRepositories() {
86
89
repositories .add (githubApi .getRepositoryById (repoId ));
87
90
}
88
91
} catch (IOException ex ) {
89
- throw new UncheckedIOException (ex );
92
+ logger .warn (
93
+ "The GitHub key ({}) used in this config is invalid. Skipping GitHubReference feature – {}" ,
94
+ config .getGitHubApiKey (), ex .getMessage ());
90
95
}
91
96
}
92
97
You can’t perform that action at this time.
0 commit comments