Ignore:
Timestamp:
10 Aug 2011, 11:02:34 (13 years ago)
Author:
Henrik Bettermann
Message:

See comment of previous revision.

File:
1 edited

Legend:

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

    r6553 r6587  
    460460        batch_id, ac_id = access_code.rsplit('-', 1)
    461461    except ValueError:
    462         raise ValueError(
    463             'Invalid access code format: %s (use: APP-N-XXXXXXXX)' % (
    464                 access_code,))
     462        return False
    465463    try:
    466464        ac = grok.getSite()['accesscodes'][batch_id].getAccessCode(access_code)
    467     except TypeError:
    468         raise KeyError(
    469             'No site available for looking up accesscodes')
     465    except:
     466        return False
    470467    info = IWorkflowInfo(ac)
    471468    if toward:
Note: See TracChangeset for help on using the changeset viewer.