Попробуйте, кроме KeyError

try:
    connection = manager.connect("I2Cx")
except Exception as e:
    print repr(e)
Real Raccoon