Browse files

Add a more descriptive error for failed deletes in Recorded due to

unavailable recording.
(cherry picked from commit d81e4ef)
  • Loading branch information...
1 parent 782b652 commit 27c3ea50cf926569ea9f021f5102c10f5456270f @wagnerrp wagnerrp committed Apr 9, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/bindings/python/MythTV/
5 mythtv/bindings/python/MythTV/
@@ -212,7 +212,10 @@ def delete(self, force=False, rerecord=False):
'force' forces a delete if the file cannot be found.
'rerecord' sets the file as recordable in oldrecorded
- return self.getProgram().delete(force, rerecord)
+ try:
+ return self.getProgram().delete(force, rerecord)
+ except NoneType:
+ raise MythError("Program could not be found")
def open(self, type='r'):
"""'r') -> file or FileTransfer object"""

0 comments on commit 27c3ea5

Please sign in to comment.