comparison MoinMoin/Page.py @ 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
comparison
equal deleted inserted replaced
6083:5e80523a1677 6084:14b0dff0d0c6
679 679
680 try: 680 try:
681 return os.path.getsize(self._text_filename(rev=rev)) 681 return os.path.getsize(self._text_filename(rev=rev))
682 except EnvironmentError, e: 682 except EnvironmentError, e:
683 import errno 683 import errno
684 if e.errno == errno.ENOENT: 684 if e.errno in [errno.ENOENT, errno.ENAMETOOLONG, ]:
685 return 0 685 return 0
686 raise 686 raise
687 687
688 def mtime_usecs(self): 688 def mtime_usecs(self):
689 """ Get modification timestamp of this page (from edit-log, can be for an old revision). 689 """ Get modification timestamp of this page (from edit-log, can be for an old revision).