Skip to content

Commit 35df28e

Browse files
committed
Move 'UsageError' definition from roundup.admin to roundup.exceptions.
1 parent 109814c commit 35df28e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

roundup/admin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import roundup.instance
3030
from roundup.configuration import CoreConfig
3131
from roundup.i18n import _
32+
from roundup.exception import UsageError
3233

3334
class CommandDict(UserDict.UserDict):
3435
'''Simple dictionary that lets us do lookups using partial keys.
@@ -49,9 +50,6 @@ def get(self, key, default=_marker):
4950
raise KeyError, key
5051
return l
5152

52-
class UsageError(ValueError):
53-
pass
54-
5553
class AdminTool:
5654
''' A collection of methods used in maintaining Roundup trackers.
5755

roundup/exceptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ class Reject(Exception):
1616
'''
1717
pass
1818

19+
class UsageError(ValueError):
20+
pass
21+
1922
# vim: set filetype=python ts=4 sw=4 et si

0 commit comments

Comments
 (0)