Rename TaskException to TaskError, use it when checking installed packages

This commit is contained in:
Anders Ingemann 2013-06-26 23:50:11 +02:00
parent 442397fb2e
commit ba461a815c
3 changed files with 5 additions and 5 deletions

View file

@ -21,5 +21,5 @@ class TaskListError(Exception):
return "Error in tasklist: {0}".format(self.message)
class TaskException(Exception):
class TaskError(Exception):
pass

View file

@ -8,5 +8,5 @@ class TriggerRollback(Task):
description = 'Triggering a rollback by throwing an exception'
def run(self, info):
from common.exceptions import TaskException
raise TaskException('Trigger rollback')
from common.exceptions import TaskError
raise TaskError('Trigger rollback')

View file

@ -1,6 +1,6 @@
from base import Task
from common import phases
from common.exceptions import TaskException
from common.exceptions import TaskError
from connection import Connect
import time
@ -79,5 +79,5 @@ class DeleteVolume(Task):
del info.volume
class VolumeError(TaskException):
class VolumeError(TaskError):
pass