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

ObjectId.is_valid(None) returns True

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.2, 3.0
    • Affects Version/s: 2.7.1
    • Component/s: None
    • Labels:
      None

      is_valid is supposed to return True if the input is a valid ObjectId, but it returns True for None, as well.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: