ovs.db.types: Simplify code to avoid try/except case.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Aug 2011 16:58:49 +0000 (09:58 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 24 Aug 2011 18:57:43 +0000 (11:57 -0700)
commitf09aa106ee66e387d68c339cdcd7426a01c4bf8d
treea14a28bd4eab544e865b747e71ba057cc4077506
parent1a98f75260289f72d430abef026c6da2b1d5a255
ovs.db.types: Simplify code to avoid try/except case.

Also fixes a typo that caused one version of the error message to have a
hyphen and the other to have a space.

Suggested-by: Reid Price <reid@nicira.com>
python/ovs/db/types.py