Is it possible to catch an exception in Python only if a debugger is not attached, and bypass it to the debugger otherwise?
An equivalent C# code:
// Entry point
try
{
...
}
catch (Exception e) when (!Debugger.IsAttached)
{
MessageBox.Show(e);
}