diff options
author | nico <nico@magicbroccoli.de> | 2018-11-07 00:37:24 +0100 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2018-11-07 00:37:24 +0100 |
commit | d7fc664d3be4634a693a24fa98ff3f15d2c97c41 (patch) | |
tree | ed646ce57bc4992de4502fbeb0669fa5e48c6ae1 /main.py | |
parent | 0c313565f2b649366f7382dc1b3f28a3e80f4ffc (diff) |
* corrected CamelCase
* corrected logging.INFO to .info
* small changes to HandleError class
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -60,6 +60,7 @@ class QueryBot(slixmpp.ClientXMPP): # If a room password is needed, use: password=the_room_password if self.room: for rooms in self.room.split(sep=","): + logging.debug("joining: %s" % rooms) self.plugin['xep_0045'].join_muc(rooms, self.nick, wait=True) async def message(self, msg): @@ -106,7 +107,7 @@ class QueryBot(slixmpp.ClientXMPP): query = await self['xep_0030'].get_info(jid=target, cached=False) except XMPPError as error: - logging.INFO(misc.HandleError(error, keyword, target).report()) + logging.info(misc.HandleError(error, keyword, target).report()) data['reply'].append(misc.HandleError(error, keyword, target).report()) continue |