If I run the code:
connection = manager.connect(\"I2Cx\")
The program crashes and reports a KeyError because I2Cx doesn\'t exist (it should be
Try print(e.message) this should be able to print your exception.
try: connection = manager.connect("I2Cx") except Exception, e: print(e.message)