Philipp Hörist pushed to branch master at gajim / gajim


Commits:
f4f7f1d1 by Andrey Gursky at 2019-07-22T02:03:27Z
Fix typo

Closes #9766

- - - - -
23d0bfcf by Andrey Gursky at 2019-07-22T02:55:30Z
Make exception message more informative

- - - - -


3 changed files:

- gajim/common/modules/base.py
- gajim/common/modules/message.py
- gajim/session.py


Changes:

=====================================
gajim/common/modules/base.py
=====================================
@@ -50,7 +50,7 @@ class BaseModule:
 
     def __getattr__(self, key):
         if key not in self._nbxmpp_methods:
-            raise AttributeError
+            raise AttributeError("attribute '%s' is neither part of object 
'%s' nor declared in '_nbxmpp_methods'" % (key, self.__class__.__name__))
         if not app.account_is_connected(self._account):
             self._log.warning('Account not connected, cant use %s', key)
             return


=====================================
gajim/common/modules/message.py
=====================================
@@ -294,7 +294,7 @@ class Message(BaseModule):
                                         message_id=event.message_id)
 
         if muc_caps_cache.has_mam(event.room_jid):
-            finished = self._con.get_module('MAM').is_catchup_finished(
+            finished = self._con.get_module('MAM').is_catch_up_finished(
                 event.room_jid)
             if not finished:
                 return


=====================================
gajim/session.py
=====================================
@@ -140,7 +140,7 @@ class ChatControlSession:
                 message_id=obj.message_id)
 
         jid = self.conn.get_own_jid().getStripped()
-        if self.conn.get_module('MAM').is_catchup_finished(jid):
+        if self.conn.get_module('MAM').is_catch_up_finished(jid):
             app.logger.set_archive_infos(jid,
                                          last_mam_id=obj.stanza_id,
                                          last_muc_timestamp=obj.timestamp)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/623960beb212af053b5ffa7967010e4ad4fb0bd4...23d0bfcf692615d8ffc5c205b8ddfabe98d9f3a1

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/623960beb212af053b5ffa7967010e4ad4fb0bd4...23d0bfcf692615d8ffc5c205b8ddfabe98d9f3a1
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to