Permalink
Browse files

Use correct exception type for error handling.

  • Loading branch information...
1 parent 95b3cab commit 751a4111b55f629e574970fe5340e1408833180f @wagnerrp wagnerrp committed Aug 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/bindings/python/MythTV/dataheap.py
View
2 mythtv/bindings/python/MythTV/dataheap.py
@@ -218,7 +218,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 751a411

Please sign in to comment.