| Summary: | yumex crash when network manager not used | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Per Arnold Blåsmo <per.arnold> |
| Component: | yumex | Assignee: | Tim Lauridsen <tla> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | tla |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-08 10:20:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 1015039 *** |
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