From: Ralf Jung Date: Tue, 3 Feb 2015 18:59:48 +0000 (+0100) Subject: deal with xbacklight returning an error code X-Git-Url: https://git.ralfj.de/lilass.git/commitdiff_plain/42329178150fafa3bc59ae6e1fcf52ea46f810a9?hp=--cc deal with xbacklight returning an error code --- 42329178150fafa3bc59ae6e1fcf52ea46f810a9 diff --git a/dsl.py b/dsl.py index 2b677bf..707a5c0 100755 --- a/dsl.py +++ b/dsl.py @@ -264,6 +264,8 @@ if __name__ == "__main__": subprocess.check_call(["xbacklight", "-set", "100"]) except FileNotFoundError: print("xbacklight has not been found, unable to turn your laptop backlight on.") + except subprocess.CalledProcessError: + print("xbacklight returned an error while attempting to turn your laptop backlight on.") except Exception as e: frontend.error(str(e)) raise