summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-30 12:48:59 +0200
committeremkael <emkael@tlen.pl>2017-09-30 12:48:59 +0200
commit6782f670227b30483252b2b4472988144b86976c (patch)
tree57e01ee395c26b2fc2f2e49e2d9d4a9227ce6181 /Aktywator
parentfcff84144c5a8871cfcb3983784133f412b31ed8 (diff)
Do not break if auto-detected MySQL database does not exist
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/MainForm.cs10
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;
}