From b11eeffae3a48dd03ac3803cd3a42247431bee4f Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 7 Mar 2011 13:28:32 -0500 Subject: [PATCH] Remove some unneeded exc_info() calls --- src/virtManager/halhelper.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/virtManager/halhelper.py b/src/virtManager/halhelper.py index 679ee66f..b7174c7e 100644 --- a/src/virtManager/halhelper.py +++ b/src/virtManager/halhelper.py @@ -19,8 +19,6 @@ import logging import os -import sys -import traceback import glob import gobject @@ -81,10 +79,8 @@ class vmmHalHelper(gobject.GObject): self.hal_iface.connect_to_signal("DeviceRemoved", self._device_removed) except Exception, e: - (_type, value, stacktrace) = sys.exc_info() logging.error("Unable to connect to HAL to list network " - "devices: " + - str(_type) + " " + str(value)) + "devices: " + str(e)) self.startup_error = str(e) def connect(self, name, callback, *args): @@ -301,10 +297,8 @@ def get_net_bridge_owner(name_ignore, sysfspath): (ignore, bridge) = os.path.split(dest) return bridge except: - (_type, value, stacktrace) = sys.exc_info() - logging.error("Unable to determine if device is shared:" + - str(_type) + " " + str(value) + "\n" + - traceback.format_exc(stacktrace)) + logging.exception("Unable to determine if device is shared") + return None def get_net_mac_address(name_ignore, sysfspath):