summaryrefslogtreecommitdiffstats
path: root/lib/bb/server/none.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/server/none.py')
-rw-r--r--lib/bb/server/none.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/server/none.py b/lib/bb/server/none.py
index d4b7fdeea..e28aa8d7d 100644
--- a/lib/bb/server/none.py
+++ b/lib/bb/server/none.py
@@ -115,7 +115,7 @@ class BitBakeServer():
def register_idle_function(self, function, data):
"""Register a function to be called while the server is idle"""
- assert callable(function)
+ assert hasattr(function, '__call__')
self._idlefuns[function] = data
def idle_commands(self, delay):