From 6a504fb0e10b1ef551ed9fe780926fe5ca02d267 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 8 Nov 2019 16:02:44 -0800 Subject: [PATCH] add exception type --- jc/parsers/ifconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/ifconfig.py b/jc/parsers/ifconfig.py index 4516cfd5..6cbf0351 100644 --- a/jc/parsers/ifconfig.py +++ b/jc/parsers/ifconfig.py @@ -164,7 +164,7 @@ def process(proc_data): try: key_int = int(entry[key]) entry[key] = key_int - except (ValueError): + except (ValueError, TypeError): entry[key] = None return proc_data