1
0
mirror of https://github.com/slgobinath/SafeEyes.git synced 2025-01-16 02:30:51 +01:00
SafeEyes/safeeyes/plugins
Chris Coutinho 448e11fe7d
Fix UnboundLocalError in smartpause plugin (#378)
* Add UnboundLocalError check in smartpause plugin

Running this package for the first time locally, I see the following error in my gnome logs:

```
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]: Exception in thread WorkThread:
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]: Traceback (most recent call last):
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:   File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:     self.run()
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:   File "/usr/lib64/python3.8/threading.py", line 870, in run
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:     self._target(*self._args, **self._kwargs)
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:   File "/usr/lib/python3.8/site-packages/safeeyes/plugins/smartpause/plugin.py", line 163, in __start_idle_monitor
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:     if next_break is not None:
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]: UnboundLocalError: local variable next_break referenced before assignment
```

This is a quick fix to solve that error

* Set next_break to None before while loop
2020-10-03 07:58:31 -04:00
..
audiblealert Refactor modules and classes 2020-03-18 08:33:11 -04:00
donotdisturb Fix bug in dnd while on battery 2018-06-24 07:52:34 -04:00
healthstats Compare screen time with last screen time 2019-03-12 19:55:03 -04:00
mediacontrol Customize tray action icons 2019-01-16 18:15:31 -05:00
notification Fix hard coded time in notification 2017-11-18 18:15:13 -05:00
screensaver Refactor modules and classes 2020-03-18 08:33:11 -04:00
smartpause Fix UnboundLocalError in smartpause plugin (#378) 2020-10-03 07:58:31 -04:00
trayicon Fix menu locked only during pre break notification issue #362 2020-04-12 08:39:24 -04:00