[mythtv-commits] [MythTV/mythtv] 1e6246: Python Bindings: Fix uncaught exception in 'deadli...

rcrdnalor noreply at github.com
Wed Dec 15 21:44:42 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 1e6246da6845370938eee6f75ecbf915559f7448
      https://github.com/MythTV/mythtv/commit/1e6246da6845370938eee6f75ecbf915559f7448
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M mythtv/bindings/python/MythTV/utility/other.py

  Log Message:
  -----------
  Python Bindings: Fix uncaught exception in 'deadlinesocket'

Python Bindings throws an error if the socket does not provide data:
Traceback (most recent call last):
....
File "/usr/lib/python3/dist-packages/MythTV/utility/other.py", line 374, in dlexpect
raise MythError(MythError.CLOSEDSOCKET)
AttributeError: type object 'MythError' has no attribute 'CLOSEDSOCKET'

Solution:
Align the error code to the methods provided by MythError.SOCKET.

Fixes #423




More information about the mythtv-commits mailing list