Browse Source

[2857] Assert type of parameter

Michal 'vorner' Vaner 11 years ago
parent
commit
0d893b5451
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bin/memmgr/memmgr.py.in

+ 1 - 0
src/bin/memmgr/memmgr.py.in

@@ -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()