VirtualMailManager/domain.py
branchv0.7.x
changeset 653 cf07e4468934
parent 643 df1e3b67882a
child 671 a9d86ccac044
--- a/VirtualMailManager/domain.py	Sun Nov 25 14:37:09 2012 +0000
+++ b/VirtualMailManager/domain.py	Sun Nov 25 17:06:17 2012 +0000
@@ -499,7 +499,7 @@
 
     """
     if not RE_DOMAIN.match(domainname):
-        domainname = domainname.encode('idna')
+        domainname = domainname.encode('idna').decode()
     if len(domainname) > 255:
         raise DomErr(_('The domain name is too long'), DOMAIN_TOO_LONG)
     if not RE_DOMAIN.match(domainname):