diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-17 01:20:03 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-17 01:20:03 +0100 |
commit | 73df5cdda541938e1891b650b3adfc1c317682fb (patch) | |
tree | b5f1f7c32a943cdf6fb103d3f6af7520f3abdf65 /src/monitor.py | |
parent | add tempurature mappings from redshift (diff) | |
download | blueshift-73df5cdda541938e1891b650b3adfc1c317682fb.tar.gz blueshift-73df5cdda541938e1891b650b3adfc1c317682fb.tar.bz2 blueshift-73df5cdda541938e1891b650b3adfc1c317682fb.tar.xz |
fix some minor errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/monitor.py')
-rw-r--r-- | src/monitor.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/monitor.py b/src/monitor.py index b2bfa84..52bc220 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -66,8 +66,11 @@ def randr(*crtcs): randr_opened = True else: sys.exit(1) - if not randr_apply(crtcs, R_curve, G_curve, B_curve) == 0: - sys.exit(1) + try: + if not randr_apply(crtcs, R_curve, G_curve, B_curve) == 0: + sys.exit(1) + except OverflowError: + pass # Happens on exit by TERM signal def print_curves(*crtcs): |