Skip to content

Commit

Permalink
Use correct exception type for error handling.
Browse files Browse the repository at this point in the history
(cherry picked from commit 751a411)
  • Loading branch information
wagnerrp committed Aug 25, 2011
1 parent 69e3919 commit 4bba807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/bindings/python/MythTV/dataheap.py
Expand Up @@ -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'):
Expand Down

0 comments on commit 4bba807

Please sign in to comment.