diff options
Diffstat (limited to 'rwa/support/sessionservice')
-rwxr-xr-x | rwa/support/sessionservice/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rwa/support/sessionservice/service.py b/rwa/support/sessionservice/service.py index 55ec593..588e531 100755 --- a/rwa/support/sessionservice/service.py +++ b/rwa/support/sessionservice/service.py @@ -334,7 +334,7 @@ class RWASupportSessionService(dbus.service.Object): host_object = self.settings.web_app_hosts[host_id] host_object = self._build_host_dict(host_id, host_object) logging.debug('web_app_hosts[%s] is the following host: "%s"', host_id, host_object) - except IndexError: + except (KeyError, IndexError): logging.error("web_app_hosts[%s] does not exist!", host_id) response = json.dumps({"status": "error", "type": "host_not_found"}) logging.info("The response to the D-Bus caller: '%s'", response) |