Fix syntax error in connectionmanager.py