changeset 6084:14b0dff0d0c6

fix another crash for too long page names
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 14 Oct 2014 18:36:16 +0200
parents 5e80523a1677
children 827466282c19
files MoinMoin/Page.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Tue Oct 14 18:21:56 2014 +0200
+++ b/MoinMoin/Page.py	Tue Oct 14 18:36:16 2014 +0200
@@ -681,7 +681,7 @@
             return os.path.getsize(self._text_filename(rev=rev))
         except EnvironmentError, e:
             import errno
-            if e.errno == errno.ENOENT:
+            if e.errno in [errno.ENOENT, errno.ENAMETOOLONG, ]:
                 return 0
             raise