Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2047

Improve InvalidBSON error messages when wrapping exceptions with empty error messages

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Reported in https://github.com/mongodb/mongo-python-driver/pull/419. A user is periodically seeing InvalidBSON errors that have an empty error message, eg InvalidBSON(''). In that thread, the root cause was determined to be a MemoryError with an empty error message.

      PyMongo could give the user more information in this case by including the original error's class name, eg: InvalidBSON('MemoryError: ').

      Another option would be to always include the original class name.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: