Skip to content

networks: 'NoneType' object has no attribute 'get_uuid'

This issue occurred after I deleted 1 network connection, then clicked on another one (trying to view its status).

Traceback:

File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in get_response
  149.                     response = self.process_exception_by_middleware(e, request)

File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in get_response
  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/lib/python3/dist-packages/plinth/modules/networks/networks.py" in show
  71.     connection_status = network.get_status_from_connection(connection)

File "/usr/lib/python3/dist-packages/plinth/network.py" in get_status_from_connection
  100.     status['primary'] = (primary_connection.get_uuid() == connection.get_uuid())

Exception Type: AttributeError at /sys/networks/c9dd803f-fe2d-4d91-a177-1410334cb06c/show/
Exception Value: 'NoneType' object has no attribute 'get_uuid'