("wizard", _("Wizard"))
], default = "wizard"
)
+config.plugins.autotimer.disabled_on_conflict = ConfigEnableDisable(default = False)
autotimer = None
autopoller = None
from AutoTimer import AutoTimer
autotimer = AutoTimer()
- from xml.parsers.expat import ExpatError
-
try:
autotimer.readXml()
- except ExpatError, ee:
+ except SyntaxError, se:
session.open(
MessageBox,
- _("Your config file is not well-formed.\nError parsing in line: %s") % (ee.lineno),
+ _("Your config file is not well-formed:\n%s") % (str(se)),
type = MessageBox.TYPE_ERROR,
timeout = 10
)
timeout = 10
)
+ # Save xml
+ autotimer.writeXml()
+
# Start autopoller again if wanted
if config.plugins.autotimer.autopoll.value:
if autopoller is None:
# Remove instance if not running in background
else:
autopoller = None
-
- # Save xml (as long as we did not cancel)
- session and autotimer.writeXml()
autotimer = None
# Movielist