diff --git a/mythtv/bindings/python/MythTV/dataheap.py b/mythtv/bindings/python/MythTV/dataheap.py index db1d3430a03..27de915cefb 100644 --- a/mythtv/bindings/python/MythTV/dataheap.py +++ b/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'):