X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fovsuuid.py;h=8a76d3a7f6386fbf272c97fc79033385c908c487;hb=84095d268f41efd2754fb920b9e93b665f7b64ba;hp=98c65f3dbf710535072079c9507f6eee70f47264;hpb=991559357f6a03c3a5b70c053c8c2554aa8d5ee4;p=openvswitch diff --git a/python/ovs/ovsuuid.py b/python/ovs/ovsuuid.py index 98c65f3d..8a76d3a7 100644 --- a/python/ovs/ovsuuid.py +++ b/python/ovs/ovsuuid.py @@ -1,4 +1,4 @@ -# Copyright (c) 2009, 2010 Nicira Networks +# Copyright (c) 2009, 2010, 2011 Nicira Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -51,6 +51,8 @@ class UUID(uuid.UUID): raise error.Error("\"%s\" is not a valid UUID" % s, json) return UUID(s) except error.Error, e: + if not symtab: + raise e try: name = ovs.db.parser.unwrap_json(json, "named-uuid", unicode) except error.Error: