comparison roundup/instance.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 8ccb41b477d1
children 1e5ed659e8ca 778a9f455067
comparison
equal deleted inserted replaced
6120:370cc9052239 6123:c177e7128dc9
44 44
45 from roundup import configuration, mailgw 45 from roundup import configuration, mailgw
46 from roundup import hyperdb, backends, actions 46 from roundup import hyperdb, backends, actions
47 from roundup.cgi import client, templating 47 from roundup.cgi import client, templating
48 from roundup.cgi import actions as cgi_actions 48 from roundup.cgi import actions as cgi_actions
49 from roundup.exceptions import RoundupException
49 50
50 51
51 class Tracker: 52 class Tracker:
52 def __init__(self, tracker_home, optimize=0): 53 def __init__(self, tracker_home, optimize=0):
53 """New-style tracker instance constructor 54 """New-style tracker instance constructor
269 270
270 def registerUtil(self, name, function): 271 def registerUtil(self, name, function):
271 self.templating_utils[name] = function 272 self.templating_utils[name] = function
272 273
273 274
274 class TrackerError(BaseException): 275 class TrackerError(RoundupException):
275 pass 276 pass
276 277
277 278
278 class OldStyleTrackers: 279 class OldStyleTrackers:
279 def __init__(self): 280 def __init__(self):

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