summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Plugins/Monitors/Bright.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Plugins/Monitors/Bright.hs b/src/Plugins/Monitors/Bright.hs
index 4cbbfa4..499e5bc 100644
--- a/src/Plugins/Monitors/Bright.hs
+++ b/src/Plugins/Monitors/Bright.hs
@@ -101,7 +101,7 @@ readBright files =
maxVal <- grab $ (fMax files)
return $ (currVal / maxVal)
where
- grab = fmap (read . B.unpack) . B.readFile
+ grab f = catch (fmap (read . B.unpack) $ B.readFile f)(\_ -> return 0)
showHorizontalBar :: Float -> Monitor String