diff --git a/statustemp.cpp b/statustemp.cpp
index 85123f6..1bfeb10 100644
--- a/statustemp.cpp
+++ b/statustemp.cpp
@@ -94,7 +94,7 @@ int main(int argc, char *argv[])
std::this_thread::sleep_for(5s);
}
}
- catch (std::exception &e)
+ catch (const std::exception &e)
{
std::cout << R"()" << e.what() << ""
<< std::endl;
diff --git a/statusweather.cpp b/statusweather.cpp
index e3a4cc0..80dde65 100644
--- a/statusweather.cpp
+++ b/statusweather.cpp
@@ -209,7 +209,7 @@ int main()
}
}
}
- catch (std::exception &e)
+ catch (const std::exception &e)
{
std::cout << R"()" << e.what() << ""
<< std::endl;