diff options
author | emkael <emkael@tlen.pl> | 2017-09-30 12:48:59 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-09-30 12:48:59 +0200 |
commit | 6782f670227b30483252b2b4472988144b86976c (patch) | |
tree | 57e01ee395c26b2fc2f2e49e2d9d4a9227ce6181 /Aktywator | |
parent | fcff84144c5a8871cfcb3983784133f412b31ed8 (diff) |
Do not break if auto-detected MySQL database does not exist
Diffstat (limited to 'Aktywator')
-rw-r--r-- | Aktywator/MainForm.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs index 40ebb2d..8f8bba0 100644 --- a/Aktywator/MainForm.cs +++ b/Aktywator/MainForm.cs @@ -91,11 +91,15 @@ namespace Aktywator private Tournament detectTeamyTournament() { - string name = bws.getMySQLDatabaseForSection(); - if (name != null) + try { - return new TeamyTournament(name); + string name = bws.getMySQLDatabaseForSection(); + if (name != null) + { + return new TeamyTournament(name); + } } + catch (Exception e) { } return null; } |