summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage_update.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage_update.py b/pym/portage_update.py
index 57aa8b43b..f156c39bc 100644
--- a/pym/portage_update.py
+++ b/pym/portage_update.py
@@ -71,9 +71,8 @@ def grab_updates(updpath, prev_mtimes=None):
mylist = os.listdir(updpath)
except OSError, oe:
if oe.errno == errno.ENOENT:
- raise DirectoryNotFound(oe)
- else:
- raise oe
+ raise DirectoryNotFound(updpath)
+ raise
if prev_mtimes is None:
prev_mtimes = {}
# validate the file name (filter out CVS directory, etc...)