diff options
| -rw-r--r-- | examples/empty_class.py | 2 | ||||
| -rw-r--r-- | py3status/__init__.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/empty_class.py b/examples/empty_class.py index 67ab5ac..fefc442 100644 --- a/examples/empty_class.py +++ b/examples/empty_class.py @@ -2,7 +2,7 @@ class Py3status: """ Empty and basic py3status class """ - def empty(self, json): + def empty(self, json, i3status_config): """ This method will return an empty text message, so it will NOT be displayed. If you want something displayed you should write something in the 'full_text' key of your response. diff --git a/py3status/__init__.py b/py3status/__init__.py index 3dd7411..57a3765 100644 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -163,7 +163,7 @@ def inject(j): except KeyError: # execute the method meth = getattr(my_class, my_method) - index, result = meth(j) + index, result = meth(j, I3STATUS_CONFIG) # respect user-defined cache timeout for this module if not result.has_key('cached_until'): |
