small fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 23 Jul 2007 14:49:35 +0000 (14:49 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 23 Jul 2007 14:49:35 +0000 (14:49 +0000)
lib/python/Components/Converter/ClockToText.py

index 65e431b..6623f24 100644 (file)
@@ -20,7 +20,7 @@ class ClockToText(Converter, object):
                        self.type = self.IN_MINUTES
                elif type == "Date":
                        self.type = self.DATE
                        self.type = self.IN_MINUTES
                elif type == "Date":
                        self.type = self.DATE
-               elif type.find("Format") != -1:
+               elif str(type).find("Format") != -1:
                        self.type = self.FORMAT
                        self.fmt_string = type[7:]
                else:
                        self.type = self.FORMAT
                        self.fmt_string = type[7:]
                else: