diff options
author | Georg Brandl <georg@python.org> | 2010-01-12 13:45:38 +0300 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-01-12 13:45:38 +0300 |
commit | 43d08313a0ecb0b331179c4875cf83728b4d9665 (patch) | |
tree | 617f8496beabaeeae6ad4f56b146b48ba44798bb /sphinx/errors.py | |
parent | c8321d3020760fb2ec1c51df8bb91e436096172c (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.py | 4 |
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' |