summaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorOHMURA Kei <ohmura.kei@lab.ntt.co.jp>2012-12-18 23:02:18 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-12-19 21:01:38 +0900
commitac2b2f02b5497d8e95187eeb0ffed6467d7f73d3 (patch)
tree36782ef6a1066b027d3ea3a36e05bd30906017e9 /bin
parent76c9a16d23a007bb7c91bb8cb07844e6b717ac10 (diff)
ryu-manager: fix keyError
Exception can be be caused by importing the threading module before monkey.patch_all(). This patch fixes the following keyError: $ ryu-manager --version ryu-manager 1.5 Exception KeyError: KeyError(30027824,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ryu-manager6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ryu-manager b/bin/ryu-manager
index 002cc590..d1bf1302 100755
--- a/bin/ryu-manager
+++ b/bin/ryu-manager
@@ -17,13 +17,13 @@
# limitations under the License.
import gevent
+from gevent import monkey
+monkey.patch_all()
+
import gflags
import logging
import sys
-from gevent import monkey
-monkey.patch_all()
-
from ryu import log
log.early_init_log(logging.DEBUG)