From 08612764362c629b9b144db64277abbe7f200b9c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 13 Feb 2012 16:14:48 +0100 Subject: [PATCH] remove obsolete MissingEnvironmentVariableError() Signed-off-by: Nico Schottelius --- lib/cdist/__init__.py | 10 ---------- lib/cdist/emulator.py | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/cdist/__init__.py b/lib/cdist/__init__.py index 800bdaa2..973b61f8 100644 --- a/lib/cdist/__init__.py +++ b/lib/cdist/__init__.py @@ -44,16 +44,6 @@ class Error(Exception): """Base exception class for this project""" pass - -class MissingEnvironmentVariableError(Error): - """Raised when a required environment variable is not set.""" - - def __init__(self, name): - self.name = name - - def __str__(self): - return 'Missing required environment variable: ' + str(self.name) - def file_to_list(filename): """Return list from \n seperated file""" if os.path.isfile(filename): diff --git a/lib/cdist/emulator.py b/lib/cdist/emulator.py index 8daa61fb..687aee93 100644 --- a/lib/cdist/emulator.py +++ b/lib/cdist/emulator.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# 2011 Nico Schottelius (nico-cdist at schottelius.org) +# 2011-2012 Nico Schottelius (nico-cdist at schottelius.org) # # This file is part of cdist. #