]> git.ipfire.org Git - thirdparty/babel.git/commit
pofile.py: Added new exception called PoFileError and thrown if flagged 532/head
authorStevenJ <stevenj@surveymonkey.com>
Mon, 25 Sep 2017 23:03:14 +0000 (16:03 -0700)
committerBedrock02 <JimSteve91@gmal.com>
Tue, 16 Jan 2018 15:05:55 +0000 (07:05 -0800)
commit9ba950c5ed92496a161cf481b694dd13b534f21d
tree241e887511e78b88ae0bf39301a8bfa8d883a379
parent9e1ec18d7aff94295c65254c21356de37116ca14
pofile.py: Added new exception called PoFileError and thrown if flagged

This new exception is thrown when the po parser finds an invalid pofile.
This helps handle invalid po files that are parsed. Invalid po files may cause
other possible errors such as a UnicodeEncodeError.

Closes https://github.com/python-babel/babel/issues/531
babel/messages/pofile.py
tests/messages/test_pofile.py