Skip to content

Commit

Permalink
Fix undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed May 25, 2017
1 parent 2f646d2 commit ddd1e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tptapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def login(self, user, password):
}
r = self._post(self.opts["url"] + "Login.json", data=form)
if r.status_code == requests.codes.ok:
self.loginData = r.json()
self.loginData = j = r.json()
if len(j["Notifications"]):
six.print_("User has a new notifications: "+", ".join(j["Notifications"]))
del self.loginData["Status"]
Expand Down

0 comments on commit ddd1e63

Please sign in to comment.