Bug 1016400 - yumex crash when network manager not used
Summary: yumex crash when network manager not used
Keywords:
Status: CLOSED DUPLICATE of bug 1015039
Alias: None
Product: Fedora
Classification: Fedora
Component: yumex
Version: 19
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-08 06:08 UTC by Per Arnold Blåsmo
Modified: 2013-10-08 10:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-08 10:20:05 UTC
Type: Bug


Attachments (Terms of Use)

Description Per Arnold Blåsmo 2013-10-08 06:08:16 UTC
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

Comment 1 Tim Lauridsen 2013-10-08 10:20:05 UTC

*** This bug has been marked as a duplicate of bug 1015039 ***


Note You need to log in before you can comment on or make changes to this bug.