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

wrong repr returned for closed MongoClient instance

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.9.4
    • Affects Version/s: 2.9
    • Component/s: None
    • None

      To reproduce:

      In [1]: from pymongo import MongoClient
      In [2]: c = MongoClient()
      In [3]: c
      Out[3]: MongoClient('localhost', 27017)
      In [4]: c.close()
      In [5]: c
      Out[5]: <repr(<pymongo.mongo_client.MongoClient at 0x10331d9d0>) failed: TypeError: not enough arguments for format string>
      

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            jianbin.wei Jianbin Wei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: