catch exceptions as const

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I2dc48774ef73fcfbe9287196086f829a6948320d
diff --git a/src/main.cpp b/src/main.cpp
index 2cdb490..98cae3e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -77,7 +77,7 @@
                 phosphor::logging::entry("RET=%d", ret));
         }
     }
-    catch (std::exception& e)
+    catch (const std::exception& e)
     {
         phosphor::logging::log<phosphor::logging::level::ERR>(e.what());
         return -1;
diff --git a/src/post_code.cpp b/src/post_code.cpp
index c62c389..4b14ca1 100644
--- a/src/post_code.cpp
+++ b/src/post_code.cpp
@@ -142,7 +142,7 @@
         cereal::JSONOutputArchive oarchivePostCodes(osPostCodes);
         oarchivePostCodes(postCodes);
     }
-    catch (cereal::Exception& e)
+    catch (const cereal::Exception& e)
     {
         phosphor::logging::log<phosphor::logging::level::ERR>(e.what());
         return "";
@@ -168,7 +168,7 @@
         }
         return false;
     }
-    catch (cereal::Exception& e)
+    catch (const cereal::Exception& e)
     {
         phosphor::logging::log<phosphor::logging::level::ERR>(e.what());
         return false;
@@ -195,7 +195,7 @@
         }
         return false;
     }
-    catch (cereal::Exception& e)
+    catch (const cereal::Exception& e)
     {
         phosphor::logging::log<phosphor::logging::level::ERR>(e.what());
         return false;