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 %}
-
+