Ignore:
Timestamp:
2 Nov 2016, 16:55:40 (8 years ago)
Author:
Henrik Bettermann
Message:

Raise customized error message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r14247 r14251  
    155155        view.flash(_('The ticket exists.'), type="warning")
    156156        return False
    157     except TicketError:
     157    except TicketError, error:
    158158        # Ticket errors are not being raised in the base package.
    159         view.flash(_('Course ${a} cannot be registered.',
    160                      mapping = {'a':course.code}),
    161                    type="warning")
     159        view.flash(error, type="warning")
    162160        return False
    163161    view.flash(_('Successfully added ${a}.',
Note: See TracChangeset for help on using the changeset viewer.