catch exceptions as const

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I9e474f2b3e936b9961eaa08693744c466736e768
diff --git a/src/ADCSensorMain.cpp b/src/ADCSensorMain.cpp
index c3239c2..eea2766 100644
--- a/src/ADCSensorMain.cpp
+++ b/src/ADCSensorMain.cpp
@@ -367,7 +367,7 @@
             {
                 index = std::stoi(path.substr(path.size() - 1));
             }
-            catch (std::invalid_argument&)
+            catch (const std::invalid_argument&)
             {
                 std::cerr << "Found invalid path " << path << "\n";
                 return;