aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/utils/serial_number.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/utils/serial_number.cpp b/host/lib/utils/serial_number.cpp
index af66197fd..61296a913 100644
--- a/host/lib/utils/serial_number.cpp
+++ b/host/lib/utils/serial_number.cpp
@@ -17,6 +17,8 @@ namespace uhd { namespace utils {
return a == b;
} catch (std::out_of_range& e) {
return false;
+ } catch (std::invalid_argument& e) {
+ return false;
}
}
}}