summaryrefslogtreecommitdiffstats
path: root/cobbler/cexceptions.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-09 12:30:53 -0400
committerJim Meyering <jim@meyering.net>2006-05-09 12:30:53 -0400
commit4494a9f367838913f1898faef81ba27a849008aa (patch)
tree950b946f154f40a754a62a94a0536e9e5b32922d /cobbler/cexceptions.py
parent804a564ac24ff22cd46583fa98d8140a8b10f476 (diff)
downloadthird_party-cobbler-4494a9f367838913f1898faef81ba27a849008aa.tar.gz
third_party-cobbler-4494a9f367838913f1898faef81ba27a849008aa.tar.xz
third_party-cobbler-4494a9f367838913f1898faef81ba27a849008aa.zip
Simplified the command line, made a better 'list' function, some string and exception
cleanup.
Diffstat (limited to 'cobbler/cexceptions.py')
-rw-r--r--cobbler/cexceptions.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/cobbler/cexceptions.py b/cobbler/cexceptions.py
index b0d1c8a..076429b 100644
--- a/cobbler/cexceptions.py
+++ b/cobbler/cexceptions.py
@@ -9,13 +9,11 @@ import cobbler_msg
class CobblerException(exceptions.Exception):
- def __init__(self, value, args=[]):
+ def __init__(self, value, *args):
"""
This is a translatable exception. value is an entry in cobbler_msg's
lookup table, args will be used for string substitution, if provided
"""
- if type(args) == str or type(args) == int:
- args = (args)
self.value = cobbler_msg.lookup(value) % args
def __str__(self):