1
0
mirror of https://github.com/slgobinath/SafeEyes.git synced 2024-12-12 22:26:06 +01:00
SafeEyes/safeeyes
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
..
config Translated using Weblate (Swedish) 2020-09-28 09:40:58 +02:00
glade Add scrollbar to settings dialog 2019-11-25 06:14:00 -05:00
plugins Fix UnboundLocalError in smartpause plugin (#378) 2020-10-03 07:58:31 -04:00
resource Change the order of sound clips 2019-02-12 06:23:19 -05:00
ui Resize break screen before and after present 2020-05-15 20:15:18 -04:00
__init__.py Initial try to package SafeEyes using setuptools 2017-03-10 23:35:06 +01:00
__main__.py Refactor modules and classes 2020-03-18 08:33:11 -04:00
core.py Refactor modules and classes 2020-03-18 08:33:11 -04:00
model.py Refactor modules and classes 2020-03-18 08:33:11 -04:00
plugin_manager.py Refactor the plugin_manager.py 2020-04-15 17:52:14 -04:00
rpc.py Refactor modules and classes 2020-03-18 08:33:11 -04:00
safeeyes.py Refactor the plugin_manager.py 2020-04-15 17:52:14 -04:00
utility.py Fix UnknownLocaleError thrown from babel 2020-07-08 18:35:51 -04:00