summaryrefslogtreecommitdiffstats
path: root/src/monitor.py
diff options
context:
space:
mode:
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):