small fix
[enigma2.git] / lib / python / Components / Converter / ClockToText.py
index 65e431bcd5bd7a698983305d558b640eaa3d9485..6623f24843f984d3cfdd62c63b66a6786860080a 100644 (file)
@@ -20,7 +20,7 @@ class ClockToText(Converter, object):
                        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: