Create topic fails with zato 3.1 py3

Since last changes, can’t create topic due to None result on input.get(‘hook_service_name’).
Please find the patch :

diff --git a/code/zato-server/src/zato/server/service/internal/pubsub/topic.py b/code/zato-server/src/zato/server/service/internal/pubsub/topic.py
index 4f08ad7…41aa219 100644
— a/code/zato-server/src/zato/server/service/internal/pubsub/topic.py
+++ b/code/zato-server/src/zato/server/service/internal/pubsub/topic.py
@@ -113,7 +113,7 @@ def response_hook(self, input, instance, attrs, service_type):
def pre_opaque_attrs_hook(self, input, instance, attrs):
# type: (Service, Bunch, PubSubTopic, Bunch)

  • if not input.get(‘hook_service_name’):
  • if not input.get(‘hook_service_name’) and input.get(‘hook_service_name’) is not None :
    hook_service_name = self.server.service_store.get_service_name_by_id(input.hook_service_id)
    input.hook_service_name = hook_service_name

BR,
Bruno

Thanks @bip68 - can you also please say what zato --version returns?