diff libervia/backend/tools/common/data_objects.py @ 4110:b274f0d5c138

tools (common/data_objects): handle messages without body
author Goffi <goffi@goffi.org>
date Tue, 08 Aug 2023 23:49:36 +0200
parents 11e802089b19
children 83d8d8500bc2
line wrap: on
line diff
--- a/libervia/backend/tools/common/data_objects.py	Thu Jul 06 11:34:52 2023 +0200
+++ b/libervia/backend/tools/common/data_objects.py	Tue Aug 08 23:49:36 2023 +0200
@@ -62,7 +62,7 @@
         try:
             return self._message_data[""]
         except KeyError:
-            return next(iter(self._message_data.values()))
+            return next(iter(self._message_data.values()), "")
 
     @property
     def subject(self):