diff sat_pubsub/pubsub_admin.py @ 417:412d26a9b2c2

import sat/wokkel modules only when making service: when importing some sat/wokkel module, a reactor is installed. This can cause trouble when using sat_pubsub along with other twisted plugin installing a specific reactor (which is the case for SàT backend and Libervia). This patch works around it by importing those modules only when making the service.
author Goffi <goffi@goffi.org>
date Tue, 08 Oct 2019 12:04:13 +0200
parents ccb2a22ea0fc
children b544109ab4c4
line wrap: on
line diff
--- a/sat_pubsub/pubsub_admin.py	Sun Aug 25 12:26:35 2019 +0200
+++ b/sat_pubsub/pubsub_admin.py	Tue Oct 08 12:04:13 2019 +0200
@@ -110,7 +110,6 @@
                     pep=pep,
                     recipient=recipient)
             except (error.Forbidden, error.ItemForbidden):
-                __import__('pudb').set_trace()
                 self.sendError(iq_elt, "forbidden")
                 return
             except Exception as e: