1. PyPA
  2. Python Packaging Authority Projects
  3. pypi

Commits

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
  • Branches default

Comments (0)

Files changed (1)

File webui.py

View file
  • Ignore whitespace
 
                 # attempt to send all the exceptions to Raven
                 try:
+                    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(
                                         "QUERY_STRING",
                                     ),
-                                    "data": form_data,
+                                    "data": transform(form_data),
                                     "headers": dict(
                                         raven.utils.wsgi.get_headers(self.env),
                                     ),