summaryrefslogtreecommitdiff
path: root/docutils/utils
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2017-06-22 20:59:19 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2017-06-22 20:59:19 +0000
commit0c0246dd51bdcc79800d55002dc2e26c85195eb6 (patch)
treecd96cde4d34de6f11df2b1214951dcce30012b95 /docutils/utils
parentb892d381971441b768499aadd16874ce1a6a0497 (diff)
downloaddocutils-0c0246dd51bdcc79800d55002dc2e26c85195eb6.tar.gz
Fix [ 321 ] Import block might cause name error.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8119 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/utils')
-rw-r--r--docutils/utils/error_reporting.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/docutils/utils/error_reporting.py b/docutils/utils/error_reporting.py
index dc393527b..47a1a3470 100644
--- a/docutils/utils/error_reporting.py
+++ b/docutils/utils/error_reporting.py
@@ -54,6 +54,8 @@ else:
# and https://sourceforge.net/p/docutils/bugs/298/
if "unknown locale: UTF-8" in error.args:
locale_encoding = "UTF-8"
+ else:
+ locale_encoding = None
except: # any other problems determining the locale -> use None
locale_encoding = None
try: