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:45:30 (GMT)
commit4bba807ea5ec563698cdbb94e5f787484d7326e0 (patch)
tree7910514304df07c770bd4f6599075be38d702790
parent69e3919de6e07b822b82c8af932c33c1b76c4c4e (diff)
Use correct exception type for error handling.
(cherry picked from commit 751a4111b55f629e574970fe5340e1408833180f)
-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 db1d343..27de915 100644
--- a/mythtv/bindings/python/MythTV/dataheap.py
+++ b/mythtv/bindings/python/MythTV/dataheap.py
@@ -214,7 +214,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'):