﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
10535	mythburn.py crash	t.brackertz@…	Stefan Brackertz <t.brackertz@…>	"Burn a DVD using mytharchive:

In the very end of the process the script tries to eject the burned DVD. If this is impossible it crashes with the following backtrace:

{{{
Failed to eject the disc!
chmod: Beim Setzen der Zugriffsrechte für „/mythpuffer/mytharchive/“: Die Operation ist nicht erlaubt
chmod: Beim Setzen der Zugriffsrechte für „/mythpuffer/mytharchive/logs“: Die Operation ist nicht erlaubt
chmod: Beim Setzen der Zugriffsrechte für „/mythpuffer/mytharchive/logs/mythburn.log“: Die Operation ist nicht erlaubt
chmod: Beim Setzen der Zugriffsrechte für „/mythpuffer/mytharchive/config“: Die Operation ist nicht erlaubt
chmod: Beim Setzen der Zugriffsrechte für „/mythpuffer/mytharchive/config/mydata.xml“: Die Operation ist nicht erlaubt
chmod: Beim Setzen der Zugriffsrechte für „/mythpuffer/mytharchive/work“: Die Operation ist nicht erlaubt
------------------------------------------------------------
Traceback (most recent call last):
  File ""/usr/share/mythtv/mytharchive/scripts/mythburn.py"", line 5182, in main
    processJob(job)
  File ""/usr/share/mythtv/mytharchive/scripts/mythburn.py"", line 4980, in processJob
    BurnDVDISO(title)
  File ""/usr/share/mythtv/mytharchive/scripts/mythburn.py"", line 2335, in BurnDVDISO
    tray(CDROM.CDROMEJECT)
  File ""/usr/share/mythtv/mytharchive/scripts/mythburn.py"", line 2266, in tray
    os.close(f)
UnboundLocalError: local variable 'f' referenced before assignment
------------------------------------------------------------
}}}

The produced DVD is fine.
But the script leaves back a .lock-file which prevents the user from burning another DVD.

Path attached."	Patch - Bug Fix	closed	minor	0.27	Plugin - MythArchive	Master Head	medium	fixed			0
