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>
This commit is contained in:
OHMURA Kei 2012-12-18 23:02:18 +09:00 committed by FUJITA Tomonori
parent 76c9a16d23
commit ac2b2f02b5
1 changed files with 3 additions and 3 deletions

View File

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