« Previous | Next » 

Revision 1e66ac3e

ID1e66ac3e68726a76b60e98f51e10ef7578a5e15e

Added by Ilias Tsitsimpis over 10 years ago

cyclades: Catch exception in verify_personality

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.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences