Print traceback for exception in set_relations