[ovs-dev] [python3 05/15] ovs.db.idl: Fix error message format arguments.
Ben Pfaff
blp at nicira.com
Thu Aug 25 00:15:03 UTC 2011
There's no variable table_name.
Found by pychecker.
---
python/ovs/db/idl.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py
index 8f3c810..65f6838 100644
--- a/python/ovs/db/idl.py
+++ b/python/ovs/db/idl.py
@@ -249,7 +249,7 @@ class Idl:
changed = True
# XXX rate-limit
logging.warning("cannot modify missing row %s in table %s"
- % (uuid, table_name))
+ % (uuid, table.name))
if self.__modify_row(table, row, new):
changed = True
return changed
@@ -269,7 +269,7 @@ class Idl:
except error.Error, e:
# XXX rate-limit
logging.warning("error parsing column %s in table %s: %s"
- % (column_name, table_name, e))
+ % (column_name, table.name, e))
continue
if datum != getattr(row, column_name):
--
1.7.4.4
More information about the dev
mailing list