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) return "Error in tasklist: {0}".format(self.message)
class TaskException(Exception): class TaskError(Exception):
pass pass

View file

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

View file

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