Skip to content

Commit

Permalink
fix to handle nonexistent system_id
Browse files Browse the repository at this point in the history
  • Loading branch information
gamuniz authored Aug 3, 2018
1 parent 0d3e89c commit 8afcb60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/scan_insights.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 8afcb60

Please sign in to comment.