Skip to content

Commit

Permalink
[FIX] l10n_es_aeat: Handle non string variables in _formatString - Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza authored and MiquelRForgeFlow committed Mar 20, 2020
1 parent 10e99b8 commit c7c2855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_es_aeat/wizard/export_to_boe.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _formatString(self, text, length, fill=' ', align='<'):
return fill * length
# Replace accents and convert to upper
from unidecode import unidecode
text = unicode(text.upper())
text = unicode(text).upper()
text = ''.join([unidecode(x) if x not in (u'Ñ', u'Ç') else x
for x in text])
text = re.sub(
Expand Down

0 comments on commit c7c2855

Please sign in to comment.