Browse Source

fix bugs~~~

fix bugs~~~
vivre 8 years ago
parent
commit
efef7ee172
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wxbot.py

+ 1 - 1
wxbot.py

@@ -1060,7 +1060,7 @@ class WXBot:
                 self.redirect_uri = redirect_uri
                 self.base_uri = redirect_uri[:redirect_uri.rfind('/')]
                 temp_host = self.base_uri[8:]
-                self.base_host = temp_host[:host2.find("/")]
+                self.base_host = temp_host[:temp_host.find("/")]
                 return code
             elif code == TIMEOUT:
                 print '[ERROR] WeChat login timeout. retry in %s secs later...' % (try_later_secs,)