Skip to content

Commit

Permalink
Merge pull request #5 from imbrianj/master
Browse files Browse the repository at this point in the history
e.getStatusCode() was throwing an error
  • Loading branch information
Dianoga committed Feb 5, 2014
2 parents c11d991 + df60d96 commit 1bef6fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nest.devicetype.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ def doRequest(uri, args, type, success) {
httpGet(params, success)
}
} catch (Throwable e) {
if(e.getStatusCode() == 401) {
login()
}
login()
}
}

Expand Down

0 comments on commit 1bef6fb

Please sign in to comment.