Skip to content

Commit

Permalink
Fixed MySql Exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
DAQEM committed Jan 14, 2024
1 parent dea5bd2 commit 83fcd14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Services/Netmon.SNMPPolling/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,13 @@
DevicesDatabase database = scope.ServiceProvider.GetRequiredService<DevicesDatabase>();
if (app.Environment.IsDevelopment())
{
database.Database.EnsureCreated();
try
{
database.Database.EnsureCreated();
}
catch (MySqlException)
{
}
}

try
Expand Down

0 comments on commit 83fcd14

Please sign in to comment.