diff --git a/plinth/network.py b/plinth/network.py index 286ac579e..7075c21b9 100644 --- a/plinth/network.py +++ b/plinth/network.py @@ -102,7 +102,9 @@ def get_status_from_connection(connection): status['wireless']['ssid'] = setting_wireless.get_ssid().get_data() primary_connection = nm.Client.new(None).get_primary_connection() - status['primary'] = (primary_connection.get_uuid() == connection.get_uuid()) + if primary_connection: + status['primary'] = (primary_connection.get_uuid() == + connection.get_uuid()) return status