Commit a5da8a4b authored by OlivierDuchateau's avatar OlivierDuchateau Committed by Sean Davis

Raise NameError and TypeError (bug #15830)

Signed-off-by: Sean Davis's avatarSean Davis <>
parent 378c7881
......@@ -711,17 +711,16 @@ if __name__ == "__main__":
args = parser.parse_args()
graphical = not args.check
primary = _("Unable to configure screensaver")
saver = args.screensaver
if saver is None:
show_fatal(primary, _("Screensaver required.") % saver)
show_fatal(primary, _("Screensaver required."))
if saver.startswith("screensavers-"):
saver = saver[13:]
primary = _("Unable to configure screensaver")
fname = get_filename(saver)
if fname is None:
show_fatal(primary, _("File not found: %s") % saver)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment