[mythtv-commits] Ticket #13178: Fix reading run level for smolt hardware profile on system with systemd
MythTV
noreply at mythtv.org
Sun Nov 19 19:32:53 UTC 2017
#13178: Fix reading run level for smolt hardware profile on system with systemd
----------------------------------+-------------------------------------
Reporter: jaham@… | Owner:
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: Unspecified
Severity: medium | Keywords: smolt, hardware profile
Ticket locked: 0 |
----------------------------------+-------------------------------------
On systems with systemd determining the run level via /sbin/runlevel fails
which triggers an exception. The code catches the exception and writes an
error message to stderr. The error message is translated using the i18n
function _(). However the file software.py is missing the appropriate
import which causes it to fail with "NameError: global name '_' is not
defined".
Adding the correct import statement "from i18n import _" fixes the error.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13178>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list