diff libervia/backend/plugins/plugin_xep_0446.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 4b842c1fb686
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0446.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_xep_0446.py	Wed Jun 19 18:44:57 2024 +0200
@@ -104,8 +104,7 @@
         return file_elt
 
     def parse_file_metadata_elt(
-        self,
-        file_metadata_elt: domish.Element
+        self, file_metadata_elt: domish.Element
     ) -> Dict[str, Any]:
         """Parse <file/> element
 
@@ -156,6 +155,7 @@
             pass
         except exceptions.DataError:
             from libervia.backend.tools.xml_tools import p_fmt_elt
+
             log.warning("invalid <hash/> element:\n{p_fmt_elt(file_metadata_elt)}")
         else:
             data["file_hash"] = (algo, hash_)