- file = open("/proc/stb/info/model", "r")
- self.device = file.readline().strip()
+ try:
+ file = open("/proc/stb/info/model", "r")
+ self.device = file.readline().strip()
+ file.close()
+ except:
+ print "----------------"
+ print "you should upgrade to new drivers for the hardware detection to work properly"
+ print "----------------"