diff --git a/nest.devicetype.groovy b/nest.devicetype.groovy index 4c21891..c44e8fd 100644 --- a/nest.devicetype.groovy +++ b/nest.devicetype.groovy @@ -275,9 +275,7 @@ def doRequest(uri, args, type, success) { httpGet(params, success) } } catch (Throwable e) { - if(e.getStatusCode() == 401) { - login() - } + login() } }