Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-12 13:45:38 +0300
committerGeorg Brandl <georg@python.org>2010-01-12 13:45:38 +0300
commit43d08313a0ecb0b331179c4875cf83728b4d9665 (patch)
tree617f8496beabaeeae6ad4f56b146b48ba44798bb /sphinx/errors.py
parentc8321d3020760fb2ec1c51df8bb91e436096172c (diff)
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'