diff --git a/include/fmt/std.h b/include/fmt/std.h index 1c43e007..cb3b452f 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -697,11 +697,9 @@ template <> struct formatter : formatter { } catch (const std::exception& e) { return formatter::format(e, ctx); } catch (...) { - return this->write_padded(ctx, string_view("unknown exception")); } -#else - return this->write_padded(ctx, string_view("unknown exception")); #endif // FMT_USE_EXCEPTIONS + return this->write_padded(ctx, string_view("unknown exception")); } };