summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <mebrown@michaels-house.net>2007-10-22 17:01:42 -0500
committerMichael E Brown <mebrown@michaels-house.net>2007-10-22 17:01:42 -0500
commit378b496a2335c9f5ffbc7668ed882539383cbd45 (patch)
tree4557f9777a50087558ab12e0b640cced88e17810
parentb94f37d1c83c82269aa714796b41d9d5146ee39c (diff)
downloadmock-378b496a2335c9f5ffbc7668ed882539383cbd45.tar.gz
mock-378b496a2335c9f5ffbc7668ed882539383cbd45.tar.xz
mock-378b496a2335c9f5ffbc7668ed882539383cbd45.zip
fully qualify exception name to fix exception trying to raise exception.
-rw-r--r--src/py-libs/backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py-libs/backend.py b/src/py-libs/backend.py
index b0e7f1a..0efe368 100644
--- a/src/py-libs/backend.py
+++ b/src/py-libs/backend.py
@@ -437,7 +437,7 @@ class Root(object):
@traceLog(moduleLog)
def _makeBuildUser(self):
if not os.path.exists(os.path.join(self.rootdir, 'usr/sbin/useradd')):
- raise RootError, "Could not find useradd in chroot, maybe the install failed?"
+ raise mock.exception.RootError, "Could not find useradd in chroot, maybe the install failed?"
# safe and easy. blow away existing /builddir and completely re-create.
mock.util.rmtree(os.path.join(self.rootdir, self.homedir))