Fix traceback for bug #127573. Thanks to illuminata for reporting and antarus for...
authorZac Medico <zmedico@gentoo.org>
Sat, 25 Mar 2006 23:33:46 +0000 (23:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 25 Mar 2006 23:33:46 +0000 (23:33 -0000)
svn path=/main/trunk/; revision=3006

pym/portage.py

index 3becb1b9bca3c9df7f0026bcd8c6e39b70a8c83b..6d7952a5b1dceb750e17567c217cbdec8b4312d3 100644 (file)
@@ -215,7 +215,7 @@ def cacheddir(my_original_path, ignorecvs, ignorelist, EmptyOnError, followSymli
                if stat.S_ISDIR(pathstat[stat.ST_MODE]):
                        mtime = pathstat[stat.ST_MTIME]
                else:
-                       raise portage_exception.PortageException
+                       raise portage_exception.DirectoryNotFound(mypath)
        except (IOError,OSError,portage_exception.PortageException):
                if EmptyOnError:
                        return [], []