summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2018-11-07 00:37:24 +0100
committernico <nico@magicbroccoli.de>2018-11-07 00:37:24 +0100
commitd7fc664d3be4634a693a24fa98ff3f15d2c97c41 (patch)
treeed646ce57bc4992de4502fbeb0669fa5e48c6ae1 /main.py
parent0c313565f2b649366f7382dc1b3f28a3e80f4ffc (diff)
* corrected CamelCase
* corrected logging.INFO to .info * small changes to HandleError class
Diffstat (limited to 'main.py')
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index 42d5349..5f8f220 100644
--- a/main.py
+++ b/main.py
@@ -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