From cb018bf33538f87e2930c6a59eb0c8832b34a720 Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Thu, 7 May 2020 21:37:43 +0800 Subject: [PATCH] Catch-all for std::invalid_argument for g++<8 (#84) --- VERSION | 2 +- comfortable-swipe-main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 1a0e369..af847dd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.2.0 +v1.2.1 diff --git a/comfortable-swipe-main.cpp b/comfortable-swipe-main.cpp index d7e8e82..9c75d36 100644 --- a/comfortable-swipe-main.cpp +++ b/comfortable-swipe-main.cpp @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) { float threshold = 0.0f; try { threshold = stof(config["threshold"]); - } catch (std::invalid_argument) { + } catch (...) { } // create swipe handler gesture_swipe_xdokey keyswipe(commands, threshold);