additional exception handling

* catches TypeError when trying to load json data
This commit is contained in:
Peter Sprygada 2017-01-26 20:39:47 -05:00
parent d2094cd611
commit e8a00377ae

View file

@ -229,7 +229,7 @@ class Connection(_Connection):
"""
try:
obj = json.loads(cmd)
except ValueError:
except (ValueError, TypeError):
obj = {'command': str(cmd).strip()}
if obj['command'] == 'close_shell()':