]> git.ipfire.org Git - oddments/collecty.git/blobdiff - src/collecty/plugins/base.py
Allow the plugins to return the results as a tuple or list
[oddments/collecty.git] / src / collecty / plugins / base.py
index a2c10552fa8a95de863f4f70a667bc5fe2283648..6c31edebf9d5969e02f6e601994192e679f59f7d 100644 (file)
@@ -155,6 +155,9 @@ class Plugin(threading.Thread):
                        now = datetime.datetime.utcnow()
                        try:
                                result = o.collect()
+
+                               if isinstance(result, tuple) or isinstance(result, list):
+                                       result = ":".join(("%s" % e for e in result))
                        except:
                                self.log.warning(_("Unhandled exception in %s.collect()") % o, exc_info=True)
                                continue