• Ilias Tsitsimpis's avatar
    cyclades: Catch exception in verify_personality · 1800feec
    Ilias Tsitsimpis authored
    The verify_personality function assumes that the contents of a
    personality is encoded in base64 and tries to decode them. But if the
    client didn't encode them a TypeError `Incorrect padding' will be
    raised. Catch this exception and raise a BadRequest.
util.py 15.5 KB