diff --git a/roku/core.py b/roku/core.py index 88eca69..2e11697 100644 --- a/roku/core.py +++ b/roku/core.py @@ -256,6 +256,9 @@ def _call(self, method, path, *args, **kwargs): resp = func(url, timeout=self.timeout, *args, **kwargs) if resp.status_code < 200 or resp.status_code > 299: + if resp.status_code == 401: + raise RokuException("Please ensure that mobile / network control " + "is enabled under Settings > Advanced Settings") raise RokuException(resp.content) return resp.content