def get_resources(self): tb = None try: ret = get_external_resources(current_container()) except Exception as err: import traceback ret, tb = err, traceback.format_exc() self.get_done.emit(ret, tb)