From 81e09a1280496bc2c2f96b9197ec7c03322cbc6d Mon Sep 17 00:00:00 2001 From: fonfon Date: Wed, 14 Oct 2015 12:43:13 +0000 Subject: [PATCH] networks: increased column size; added TODO --- plinth/modules/networks/networks.py | 3 +++ plinth/modules/networks/templates/connection_show.html | 2 +- plinth/modules/networks/templates/connections_list.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plinth/modules/networks/networks.py b/plinth/modules/networks/networks.py index 703133ee9..219477593 100644 --- a/plinth/modules/networks/networks.py +++ b/plinth/modules/networks/networks.py @@ -85,6 +85,9 @@ def show(request, uuid): interface_name = connection_status['interface_name'] if interface_name: device = network.get_device_by_interface_name(interface_name) + else: + # TODO: What to do in this situation? + raise RuntimeError('Could not get device status') device_status = network.get_status_from_device(device) diff --git a/plinth/modules/networks/templates/connection_show.html b/plinth/modules/networks/templates/connection_show.html index c0e560578..dd4f17773 100644 --- a/plinth/modules/networks/templates/connection_show.html +++ b/plinth/modules/networks/templates/connection_show.html @@ -32,7 +32,7 @@ {% block content %}
-