diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-05-08 15:02:06 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-05-08 15:02:06 -0400 |
commit | d4f71b4318fedf374844030095c6c8dd544f0e92 (patch) | |
tree | dd5bb88c2587a0ab4ea2638374ad4a71bbd868a9 /cobbler/collection_distros.py | |
parent | 038a4383ccb6230f927960a34288c5cf6fbd3455 (diff) | |
download | third_party-cobbler-d4f71b4318fedf374844030095c6c8dd544f0e92.tar.gz third_party-cobbler-d4f71b4318fedf374844030095c6c8dd544f0e92.tar.xz third_party-cobbler-d4f71b4318fedf374844030095c6c8dd544f0e92.zip |
Interim checkin while straightening out exceptions. The last_error bit reminded me of the
thing I hated most about Microsoft SDK/DDK programming (that being, last_error and inconsistant
error handling), so it had to go.
Diffstat (limited to 'cobbler/collection_distros.py')
-rw-r--r-- | cobbler/collection_distros.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cobbler/collection_distros.py b/cobbler/collection_distros.py index be024fc..5f49d16 100644 --- a/cobbler/collection_distros.py +++ b/cobbler/collection_distros.py @@ -30,11 +30,9 @@ class Distros(collection.Collection): # first see if any Groups use this distro for v in self.config.profiles(): if v.distro == name: - utils.set_error("orphan_files") - return False + raise CobblerException("orphan_files") if self.find(name): del self.listing[name] return True - utils.set_error("delete_nothing") - return False + raise CobblerException("delete_nothing") |