MCPcopy Create free account
hub / github.com/pyload/pyload / run

Method run

module/plugins/hooks/XMPP.py:97–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 self.start()
96
97 def run(self):
98 self.log_debug('def run')
99 try:
100 if self.xmpp.connect():
101 self.xmpp.process(block=False)
102 self.log_info('Done')
103 # self.periodical.start(30)
104
105 else:
106 self.log_error("Unable to connect.")
107
108 except Exception as e:
109 self.log_error(e, trace=True)
110
111 ############################################################################
112 ## xmpp handler

Callers

nothing calls this directly

Calls 4

log_debugMethod · 0.80
log_infoMethod · 0.80
log_errorMethod · 0.80
processMethod · 0.45

Tested by

no test coverage detected