diff --git a/plinth/modules/networks/networks.py b/plinth/modules/networks/networks.py index 67c097d6e..0d03346bf 100644 --- a/plinth/modules/networks/networks.py +++ b/plinth/modules/networks/networks.py @@ -65,6 +65,11 @@ def edit(request, uuid): 'Connection not found.')) return redirect(reverse_lazy('networks:index')) + if connection.get_connection_type() not in network.CONNECTION_TYPE_NAMES: + messages.error(request, + _('This type of connection is not yet understood.')) + return redirect(reverse_lazy('networks:index')) + form = None form_data = {'name': connection.get_id()}