Mercurial > p > roundup > code
comparison roundup/configuration.py @ 5264:32f95ec6bd8e
Python 2 and 3 support. Convert Exception into BaseException in core code.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 04 Sep 2017 21:56:49 -0400 |
| parents | c5dd7b151ec2 |
| children | e20f472fde7d |
comparison
equal
deleted
inserted
replaced
| 5263:f015df5f8edf | 5264:32f95ec6bd8e |
|---|---|
| 20 | 20 |
| 21 # XXX i don't think this module needs string translation, does it? | 21 # XXX i don't think this module needs string translation, does it? |
| 22 | 22 |
| 23 ### Exceptions | 23 ### Exceptions |
| 24 | 24 |
| 25 class ConfigurationError(Exception): | 25 class ConfigurationError(BaseException): |
| 26 pass | 26 pass |
| 27 | 27 |
| 28 class NoConfigError(ConfigurationError): | 28 class NoConfigError(ConfigurationError): |
| 29 | 29 |
| 30 """Raised when configuration loading fails | 30 """Raised when configuration loading fails |
