Skip to content

Instantly share code, notes, and snippets.

@danared
Created April 8, 2015 17:38
Show Gist options
  • Save danared/bb83d322fe859bc71b80 to your computer and use it in GitHub Desktop.
Save danared/bb83d322fe859bc71b80 to your computer and use it in GitHub Desktop.
>>> try:
... MongoClient()
... print("it's working")
... except pymongo.errors.ConnectionFailure:
... print("please start mongod")
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment