summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Wagner <rwagner@mythtv.org>2011-08-25 20:44:24 (GMT)
committer Raymond Wagner <rwagner@mythtv.org>2011-08-25 20:44:24 (GMT)
commit751a4111b55f629e574970fe5340e1408833180f (patch)
treee698bcea4a6bd9f0eb57eb63f911791631d0e632
parent95b3cabef396465a7067d88da5d9b2e4c451ee45 (diff)
Use correct exception type for error handling.
-rw-r--r--mythtv/bindings/python/MythTV/dataheap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/bindings/python/MythTV/dataheap.py b/mythtv/bindings/python/MythTV/dataheap.py
index f031903..71a4207 100644
--- a/mythtv/bindings/python/MythTV/dataheap.py
+++ b/mythtv/bindings/python/MythTV/dataheap.py
@@ -218,7 +218,7 @@ class Recorded( DBDataWrite, CMPRecord ):
"""
try:
return self.getProgram().delete(force, rerecord)
- except NoneType:
+ except AttributeError:
raise MythError("Program could not be found")
def open(self, type='r'):