Permalink
Browse files

[11.0][FIX]web_debranding_decode_bug

  • Loading branch information...
notze-nb2
notze-nb2 committed Jan 17, 2019
1 parent 7863735 commit ff385a6b2c877160c718f903b1480a257f1a1366
Showing with 4 additions and 1 deletion.
  1. +4 −1 web_debranding/models/ir_translation.py
@@ -57,7 +57,10 @@ def debrand(env, source, is_code=False):


def debrand_bytes(env, source):
return bytes(debrand(env, source.decode('utf-8')), 'utf-8')
if source:
return bytes(debrand(env, source.decode('utf-8')), 'utf-8')
else:
return bytes('', 'utf-8')


class IrTranslation(models.Model):

0 comments on commit ff385a6

Please sign in to comment.