summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-12 10:45:38 +0000
committerGeorg Brandl <georg@python.org>2010-01-12 10:45:38 +0000
commit43d08313a0ecb0b331179c4875cf83728b4d9665 (patch)
tree617f8496beabaeeae6ad4f56b146b48ba44798bb /sphinx/errors.py
parentc8321d3020760fb2ec1c51df8bb91e436096172c (diff)
downloadsphinx-git-43d08313a0ecb0b331179c4875cf83728b4d9665.tar.gz
Improve the handling of non-Unicode strings in the configuration:
warn about non-ascii bytestrings, and give nicer messages if unicode errors occur.
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py
index 684101c68..4e62b1af1 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -44,5 +44,9 @@ class ExtensionError(SphinxError):
return parent_str
+class ConfigError(SphinxError):
+ category = 'Configuration error'
+
+
class ThemeError(SphinxError):
category = 'Theme error'