Skip to content

Commit

Permalink
Fix #3436: pot-update failing
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Aug 5, 2018
1 parent a3bb7b6 commit 5bbc7fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/pywmlx/state/machine.py
Expand Up @@ -386,6 +386,9 @@ def run(*, filebuf, fileref, fileno, startstate, waitwml=True):
# end while xline
# end for xline
except UnicodeDecodeError as e:
if "test_cve_2018_1999023_2.cfg" in pywmlx.nodemanip.fileref:
# This unit test is allowed to contain invalid UTF-8. Ignore it.
return
errpos = int(e.start) # error position on file object with UTF-8 error
errbval = hex(e.object[errpos]) # value of byte wich causes UTF-8 error
# well... when exception occurred, the _current_lineno value
Expand Down

0 comments on commit 5bbc7fe

Please sign in to comment.