def update_topology():
for topology in Topology.objects.all():<EOL><INDENT>try:<EOL><INDENT>topology.update()<EOL><DEDENT>except Exception as e:<EOL><INDENT>msg = '<STR_LIT>'.format(topology.__repr__())<EOL>logger.exception(msg)<EOL>print('<STR_LIT>'<EOL>'<STR_LIT>'.format(msg, e.__class__))<EOL><DEDENT><DEDENT>
updates all the topology
sends logs to the "nodeshot.networking" logger