ewdurbin  committed 7a86bac

wrap data to send to sentry in raven.utils.serializer.transform()

This should alleviate all the errors we've been seeing trying to serialize the FileUpload object when uploads error out

  • Participants
  • Parent commits bf053f1

Comments (0)

Files changed (1)

                 # attempt to send all the exceptions to Raven
+                    from raven.utils.serializer import transform
                     if self.sentry_client:
                         if self.form and not isinstance(self.form, FileUpload):
                             form_data = self.form
                                     "query_string": self.env.get(
-                                    "data": form_data,
+                                    "data": transform(form_data),
                                     "headers": dict(