]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2857] Assert type of parameter
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 26 Aug 2013 09:05:50 +0000 (11:05 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 26 Aug 2013 09:05:50 +0000 (11:05 +0200)
src/bin/memmgr/memmgr.py.in

index 9141d6b88b394acea2327a4ac83f2b7bc9b18a5c..889ce03abaf2d4731af8ff8dd7bfc20409f1c3f6 100755 (executable)
@@ -128,6 +128,7 @@ class Memmgr(BIND10Server):
         """
         Send a command to the builder, with proper synchronization.
         """
+        assert isinstance(cmd, tuple)
         with self._builder_cv:
             self._builder_command_queue.append(cmd)
             self._builder_cv.notify_all()