Changeset 751:fe6240872e47 in hatta-dev


Ignore:
Timestamp:
01/25/10 15:21:38 (2 years ago)
Author:
sheep@…
Branch:
default
Message:

raise the correct exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hatta.py

    r750 r751  
    707707            os.makedirs(dir_path) 
    708708        except OSError, e: 
    709             if e.errno != 17 or not os.path.isdir(dir_path): 
     709            if e.errno == 17 and not os.path.isdir(dir_path): 
    710710                raise werkzeug.exceptions.Forbidden( 
    711711                    _(u"Can't make subpages of existing pages")) 
     712            elif e.errno != 17: 
     713                raise 
    712714        super(WikiSubdirectoryStorage, self).save_file(title, file_name, 
    713715                                                       author, comment, parent) 
Note: See TracChangeset for help on using the changeset viewer.