# HG changeset patch # User Paper # Date 1698811256 14400 # Node ID 2c27582a177c744909ea2607235b481896e0546b # Parent 29e2840d9b7b49a4e1d10d3a2c9fcc35ef1c5a83 pages/now_playing: fix invalid catch diff -r 29e2840d9b7b -r 2c27582a177c src/gui/pages/now_playing.cc --- a/src/gui/pages/now_playing.cc Tue Oct 31 23:56:10 2023 -0400 +++ b/src/gui/pages/now_playing.cc Wed Nov 01 00:00:56 2023 -0400 @@ -94,7 +94,7 @@ _id = anime.GetId(); try { _episode = std::stoi(info.at("episode")); - } catch (std::invalid_argument) { + } catch (std::invalid_argument const&) { _episode = 0; } _title->SetText(Strings::ToQString(anime.GetUserPreferredTitle()));