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
commit151f182a2c55b9c6904475c753ee961460ef7823 (patch)
tree617f8496beabaeeae6ad4f56b146b48ba44798bb /sphinx/errors.py
parent916f6fc763b4d06a5da41f9f84377c8ddfd1c3f3 (diff)
downloadsphinx-151f182a2c55b9c6904475c753ee961460ef7823.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 684101c6..4e62b1af 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'