Ignore:
Timestamp:
14 Aug 2011, 20:57:07 (13 years ago)
Author:
Henrik Bettermann
Message:

Catch traceback if data center storage path is not allowed to use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r6589 r6612  
    816816            for name in not_copied:
    817817                self.flash('File already existed (not copied): %s' % name)
    818         except ValueError:
     818        except:
    819819            self.flash('Given storage path cannot be used.')
    820820            self.flash('Error: %s' %sys.exc_info()[1])
     
    961961            self.context.addFaculty(faculty)
    962962        except KeyError:
    963             self.status = self.flash('The faculty code chosen already exists.')
     963            self.flash('The faculty code chosen already exists.')
    964964            return
    965965        self.redirect(self.url(self.context, u'@@manage')+'#tab-1')
     
    11001100            self.context.addDepartment(department)
    11011101        except KeyError:
    1102             self.status = self.flash('The code chosen already exists '
     1102            self.flash('The code chosen already exists '
    11031103                                  'in this faculty.')
    11041104            return
Note: See TracChangeset for help on using the changeset viewer.