summaryrefslogtreecommitdiffstats
path: root/src/monitor.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-17 01:20:03 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-17 01:20:03 +0100
commit73df5cdda541938e1891b650b3adfc1c317682fb (patch)
treeb5f1f7c32a943cdf6fb103d3f6af7520f3abdf65 /src/monitor.py
parentadd tempurature mappings from redshift (diff)
downloadblueshift-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.py7
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):