Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

unavailable recording.
(cherry picked from commit d81e4ef)
  • Loading branch information...
commit 27c3ea50cf926569ea9f021f5102c10f5456270f 1 parent 782b652
@wagnerrp wagnerrp authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/bindings/python/MythTV/dataheap.py
View
5 mythtv/bindings/python/MythTV/dataheap.py
@@ -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'):
"""Recorded.open(type='r') -> file or FileTransfer object"""
Please sign in to comment.
Something went wrong with that request. Please try again.