We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a6330f commit 96145c7Copy full SHA for 96145c7
addons/source-python/packages/source-python/cvars/__init__.py
@@ -64,6 +64,10 @@ def __init__(self, *convars):
64
65
def __call__(self, callback):
66
"""Store the callback and add it to convars."""
67
+ # Is the callback callable?
68
+ if not callable(callback):
69
+ raise ValueError('Given callback is not callable.')
70
+
71
# Store the callback
72
self.callback = callback
73
0 commit comments