From bc6d8d8d4fd644789345dabc91b5ee728f524afa Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Wed, 13 Aug 2008 11:04:14 +0200 Subject: [PATCH] Don't die when getting attrs of a directory. --- geekigeeki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geekigeeki.py b/geekigeeki.py index 5abd90f..287a945 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -622,7 +622,7 @@ class Page: self.attrs[m.group(1)] = m.group(2).strip() #print "bernie: attrs[" + m.group(1) + "] = " + m.group(2) + "
\n" except IOError, er: - if er.errno != errno.ENOENT: + if er.errno != errno.ENOENT and er.errno != errno.EISDIR: raise er return self.attrs -- 2.25.1