Skip to content

Commit

Permalink
Additional check to prevent exception in loginlockdown detection
Browse files Browse the repository at this point in the history
  • Loading branch information
atarantini committed Aug 25, 2011
1 parent 7baa205 commit 0dbc4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def check_loginlockdown(self):
proxy -- URL for a HTTP Proxy
"""
data = self.request(self._login_url, cache=True)
if "lockdown" in data.lower():
if data and "lockdown" in data.lower():
return True
else:
return False
Expand Down

0 comments on commit 0dbc4f7

Please sign in to comment.