diff sat/plugins/plugin_xep_0060.py @ 3069:73db9db8b9e1

plugin XEP-0277: fixed comments URLs parsing
author Goffi <goffi@goffi.org>
date Fri, 08 Nov 2019 11:55:21 +0100
parents 93e8793a735a
children cea52c9ddfd9
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0060.py	Fri Nov 08 11:47:42 2019 +0100
+++ b/sat/plugins/plugin_xep_0060.py	Fri Nov 08 11:55:21 2019 +0100
@@ -1128,10 +1128,8 @@
         """
         items, metadata = items_data
 
-        def eb(failure):
-            log.warning(
-                "Error while serialising/parsing item: {}".format(str(failure.value))
-            )
+        def eb(failure_):
+            log.warning(f"Error while serialising/parsing item: {failure_.value}")
 
         d = defer.gatherResults([item_cb(item).addErrback(eb) for item in items])