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

wrong repr returned for closed MongoClient instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.9
    • 2.9.4
    • None
    • None

    Description

      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>
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: