From: Bernie Innocenti Date: Wed, 13 Aug 2008 09:04:14 +0000 (+0200) Subject: Don't die when getting attrs of a directory. X-Git-Tag: v3.0~8^2~8 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=bc6d8d8d4fd644789345dabc91b5ee728f524afa;p=geekigeeki.git Don't die when getting attrs of a directory. --- 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