do not reimplement built-in exceptions

Remove exceptions shadowing built-in ones from molecule.exceptions
and update the code to work with this change
This commit is contained in:
root
2009-03-25 12:47:33 +01:00
parent db9d6025b3
commit bccb1f97d2
3 changed files with 1 additions and 8 deletions
-6
View File
@@ -28,11 +28,5 @@ class MoleculeException(Exception):
else:
return repr(self.value)
class EnvironmentError(MoleculeException):
"""Environment error, self explanatory"""
class SpecFileError(MoleculeException):
"""Error inside spec file"""
class NotImplementedError(MoleculeException):
"""Error inside spec file"""
+1 -1
View File
@@ -20,7 +20,7 @@
from __future__ import with_statement
import os
import threading
from molecule.exception import SpecFileError, EnvironmentError
from molecule.exception import SpecFileError
import molecule.utils
class Constants(dict):
-1
View File
@@ -23,7 +23,6 @@ import sys
import time
import subprocess
import shutil
from molecule.exception import EnvironmentError
def get_year():
return time.strftime("%Y")