Added check for DB structure differences in TV DB Mgr

This commit is contained in:
noisymime 2008-02-11 22:11:07 +00:00
parent 5573558532
commit 46a50de811
1 changed files with 30 additions and 27 deletions

View File

@ -37,6 +37,7 @@ class channel:
pass
def import_from_mythObject(self, mythObject):
try:
self.chanID = mythObject[0]
self.channum = mythObject[1]
self.freqid = mythObject[2]
@ -64,6 +65,8 @@ class channel:
self.atsc_major_chan = mythObject[24]
self.atsc_minor_chan = mythObject[25]
self.last_record = mythObject[26]
except IndexError, e:
print "Found difference in DB structure. Attempting to continue."
class show: