Permalink
Browse files

Use correct exception type for error handling.

(cherry picked from commit 751a411)
  • Loading branch information...
1 parent 69e3919 commit 4bba807ea5ec563698cdbb94e5f787484d7326e0 @wagnerrp wagnerrp committed Aug 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/bindings/python/MythTV/dataheap.py
@@ -214,7 +214,7 @@ def delete(self, force=False, rerecord=False):
"""
try:
return self.getProgram().delete(force, rerecord)
- except NoneType:
+ except AttributeError:
raise MythError("Program could not be found")
def open(self, type='r'):

0 comments on commit 4bba807

Please sign in to comment.