Traceback (most recent call last):


 "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner

self.run()


 "/usr/lib/python3.6/threading.py", line 864, in run

self._target(*self._args, **self._kwargs)


 "/usr/local/lib/python3.6/dist-packages/pysyncobj/syncobj.py", line 508, in _autoTickThread

self._onTick(self.__conf.autoTickPeriod)


 "/usr/local/lib/python3.6/dist-packages/patroni/dcs/raft.py", line 250, in _onTick

super(KVStoreTTL, self)._onTick(timeToWait)


 "/usr/local/lib/python3.6/dist-packages/pysyncobj/syncobj.py", line 620, in _onTick

self._poller.poll(timeToWait)


 "/usr/local/lib/python3.6/dist-packages/pysyncobj/poller.py", line 97, in poll

self.__descrToCallbacks[descr](descr, eventMask)


 "/usr/local/lib/python3.6/dist-packages/pysyncobj/tcp_connection.py", line 174, in __processConnection

self.__onMessageReceived(message)


 "/usr/local/lib/python3.6/dist-packages/pysyncobj/transport.py", line 455, in _onOutgoingMessageReceived

conn.send(self._selfNode.address)
AttributeError: 'NoneType' object has no attribute 'address'

Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py", line 43, in _cache_controlled

response = viewfunc(request, *args, **kw)


 "/usr/local/lib/python3.6/site-packages/wagtail/wagtailadmin/urls/__init__.py", line 96, in wrapper

return view_func(request, *args, **kwargs)


 "/usr/local/lib/python3.6/site-packages/wagtail/wagtailadmin/decorators.py", line 31, in decorated_view

return view_func(request, *args, **kwargs)


 "/usr/local/lib/python3.6/site-packages/wagtail/contrib/settings/views.py", line 43, in edit_current_site

return redirect('wagtailsettings:edit', app_name, model_name, site.pk)
AttributeError: 'NoneType' object has no attribute 'pk'
