Philipp Hörist pushed to branch master at gajim / gajim
Commits:
814e0d0b by Philipp Hörist at 2024-05-20T16:51:11+02:00
cfix: Migration: Don’t fail on invalid remote JID
- - - - -
1 changed file:
- gajim/common/storage/archive/migration.py
Changes:
=====================================
gajim/common/storage/archive/migration.py
=====================================
@@ -279,7 +279,14 @@ def _process_archive_row(
)
return
- remote_jid = JID.from_string(archive_row.remote.jid)
+ try:
+ remote_jid = JID.from_string(archive_row.remote.jid)
+ except Exception as error:
+ log.warning(
+ 'Invalid JID found, unable to migrate archive state: %s', error
+ )
+ return
+
remote_pk = self._get_remote_pk(conn, remote_jid)
to_stanza_id = archive_row.last_mam_id
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/814e0d0b5615830e699d92b0d5a42b76e7987c10
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/814e0d0b5615830e699d92b0d5a42b76e7987c10
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]