From cfb2820e1051de15e37c4a3d12be9b5514f81610 Mon Sep 17 00:00:00 2001 From: Yaakov Nemoy Date: Wed, 1 Oct 2008 19:50:34 -0400 Subject: Breaks everything up into seperate files. I had a problem where having Module in the local namespace was not the same as having Module in the non local namespace (via an import). Somehow breaking it down this way seemed simpler. --- base/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 base/exceptions.py (limited to 'base/exceptions.py') diff --git a/base/exceptions.py b/base/exceptions.py new file mode 100644 index 0000000..471dd0e --- /dev/null +++ b/base/exceptions.py @@ -0,0 +1,4 @@ +class ModuleError(Exception): + def __init__(self, reason, error): + self.reason = reason + self.error = error -- cgit