From 8afcb60eaddd7729bc0c1e18da3a1ffa6de09dcf Mon Sep 17 00:00:00 2001 From: gamuniz Date: Fri, 3 Aug 2018 15:36:16 -0400 Subject: [PATCH] fix to handle nonexistent system_id --- library/scan_insights.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/scan_insights.py b/library/scan_insights.py index dedd567..917b81b 100755 --- a/library/scan_insights.py +++ b/library/scan_insights.py @@ -41,7 +41,9 @@ def get_system_id(filname): pass finally: f.close() - return system_id.strip() + if system_id: + system_id = system_id.strip() + return system_id def main():