comparison roundup/configuration.py @ 6123:c177e7128dc9

issue2551083 Replace BaseException and Exception with RoundupException issue2551083 - Replace BaseException and Exception as base classes with new RoundupException (inheriting from Exception) for most roundup exceptions.
author John Rouillard <rouilj@ieee.org>
date Fri, 03 Apr 2020 16:18:59 -0400
parents 380dec305c28
children 15c68580578f
comparison
equal deleted inserted replaced
6120:370cc9052239 6123:c177e7128dc9
27 if sys.version_info[0] > 2: 27 if sys.version_info[0] > 2:
28 import configparser # Python 3 28 import configparser # Python 3
29 else: 29 else:
30 import ConfigParser as configparser # Python 2 30 import ConfigParser as configparser # Python 2
31 31
32 from exceptions import RoundupException
33
32 # XXX i don't think this module needs string translation, does it? 34 # XXX i don't think this module needs string translation, does it?
33 35
34 ### Exceptions 36 ### Exceptions
35 37
36 38
37 class ConfigurationError(BaseException): 39 class ConfigurationError(RoundupException):
38 pass 40 pass
39 41
40 42
41 class NoConfigError(ConfigurationError): 43 class NoConfigError(ConfigurationError):
42 44

Roundup Issue Tracker: http://roundup-tracker.org/