summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_distros.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/collection_distros.py')
-rw-r--r--cobbler/collection_distros.py6
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")