Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

widget: graph: NetGraph: fix unhandled exception #546

Merged
merged 1 commit into from
Nov 21, 2014
Merged

widget: graph: NetGraph: fix unhandled exception #546

merged 1 commit into from
Nov 21, 2014

Conversation

fscherf
Copy link

@fscherf fscherf commented Nov 20, 2014

If Qtile trys to come up without default route, this TraceBack appears:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/qtile-0.8.0-py2.7.egg/libqtile/confreader.py", line 54, in init
config = import(os.path.basename(fname)[:-3])
File "/home/fsc/.config/qtile/config.py", line 139, in
widget.NetGraph(**widget_graph_defaults),
File "/usr/local/lib/python2.7/dist-packages/qtile-0.8.0-py2.7.egg/libqtile/widget/graph.py", line 285, in init
self.interface = self.get_main_iface()
File "/usr/local/lib/python2.7/dist-packages/qtile-0.8.0-py2.7.egg/libqtile/widget/graph.py", line 321, in get_main_iface
routes[0]
IndexError: list index out of range

Signed-off-by: Florian Scherf fscherf@gmx.net

If Qtile trys to come up without default route, this TraceBack appears:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/qtile-0.8.0-py2.7.egg/libqtile/confreader.py", line 54, in __init__
    config = __import__(os.path.basename(fname)[:-3])
  File "/home/fsc/.config/qtile/config.py", line 139, in <module>
    widget.NetGraph(**widget_graph_defaults),
  File "/usr/local/lib/python2.7/dist-packages/qtile-0.8.0-py2.7.egg/libqtile/widget/graph.py", line 285, in __init__
    self.interface = self.get_main_iface()
  File "/usr/local/lib/python2.7/dist-packages/qtile-0.8.0-py2.7.egg/libqtile/widget/graph.py", line 321, in get_main_iface
    routes[0]
IndexError: list index out of range

Signed-off-by: Florian Scherf <fscherf@gmx.net>
@tych0 tych0 merged commit cecca31 into qtile:develop Nov 21, 2014
@tych0
Copy link
Member

tych0 commented Nov 21, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants