Hide Forgot
Description of problem: When running Fedora with network manager disabled, yumex fails with bad exception handling. Version-Release number of selected component (if applicable): yumex-3.0.12-1.fc19.noarch How reproducible: Steps to Reproduce: 1. Run with network manager disabled 2. Start yumex 3. Actual results: $ yumex 08:03:17 : INFO - Using config file : /home/<user>/.config/yumex/yumex.conf 08:03:17 : INFO - Using config file : /home/<user>/.config/yumex/yumex.conf Traceback (most recent call last): File "/usr/bin/yumex", line 62, in <module> app = YumexApplication(backend) File "/usr/lib/python2.7/site-packages/yumexgui/__init__.py", line 211, in __init__ Controller.__init__(self, BUILDER_FILE , 'main', domain='yumex') File "/usr/lib/python2.7/site-packages/guihelpers/__init__.py", line 280, in __init__ self.ui.connect_signals(self._getAllMethods()) File "/usr/lib/python2.7/site-packages/guihelpers/__init__.py", line 310, in _getAllMethods value = getattr(self, name) File "/usr/lib/python2.7/site-packages/yumexgui/__init__.py", line 260, in is_offline rc = self._network.check_network_connection() File "/usr/lib/python2.7/site-packages/yumexbase/network.py", line 92, in check_network_connection print str(e) NameError: global name 'e' is not defined Expected results: yumex starts as normal. Additional info: Changing line 89 from: except: # Catch all exceptions to except Exception as e : # Catch all exceptions Fixes the problem
*** This bug has been marked as a duplicate of bug 1015039 ***