From 0e2ebb4e25f73e922b5f0f5256b70649d849d075 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Oct 20 2021 11:00:04 +0000 Subject: Revert "PR#2944: decode protonmsg props field when loading from db" This reverts commit 34d1c8eb9e17491e819153ce1e482691aaac1da4, reversing changes made to fdccd38148666d07ab2fc09c33681b466323c743. Proper solution was part of https://pagure.io/koji/pull-request/2955, so this merge was a mistake. Reverting. --- diff --git a/plugins/hub/protonmsg.py b/plugins/hub/protonmsg.py index ec731e3..148ed2d 100644 --- a/plugins/hub/protonmsg.py +++ b/plugins/hub/protonmsg.py @@ -350,11 +350,6 @@ def handle_db_msgs(urls, CONFIG): aliases=('id', 'address', 'props', 'body'), opts={'order': 'id', 'limit': limit}) msgs = list(query.execute()) - for msg in msgs: - try: - msg['props'] = json.loads(msg['props']) - except Exception: - LOG.error('Unable to load message from db: %r', msg) if not msgs: return if CONFIG.getboolean('broker', 'test_mode', fallback=False):