From fcd3efb39b0f8fe322e13eebb3d95df24e096e49 Mon Sep 17 00:00:00 2001
From: lovetox <philipp@hoerist.com>
Date: Thu, 16 Apr 2020 19:05:09 +0200
Subject: [PATCH] Return correct type when calling parse_jid()

Fixes #10061
---
 gajim/common/helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gajim/common/helpers.py b/gajim/common/helpers.py
index 35ea382352..73c1f6895d 100644
--- a/gajim/common/helpers.py
+++ b/gajim/common/helpers.py
@@ -102,7 +102,7 @@ class InvalidFormat(Exception):
 
 def parse_jid(jidstring):
     try:
-        return validate_jid(jidstring)
+        return str(validate_jid(jidstring))
     except Exception as error:
         raise InvalidFormat(error)
 
-- 
GitLab