Skip to content

Commit c1f8ac2

Browse files
caveman8080github-advanced-security[bot]Copilot
authored
Potential fix for code scanning alert no. 82: Generic catch clause (#28)
* Potential fix for code scanning alert no. 82: Generic catch clause Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Remove unreachable DNS secrets catch blocks --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent a5ffc1b commit c1f8ac2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ private void ViewDnsSecrets_Click(object sender, RoutedEventArgs e)
939939
};
940940
secretsWindow.ShowDialog();
941941
}
942-
catch (Exception ex)
942+
catch (InvalidOperationException ex)
943943
{
944944
Log($"❌ Failed to open stored DNS secrets: {ex.Message}");
945945
MessageBox.Show($"Unable to open stored DNS secrets.\n\n{ex.Message}", "Stored DNS Secrets", MessageBoxButton.OK, MessageBoxImage.Error);

0 commit comments

Comments
 (0)