From 4c0e07b8379381cfe887a4c65d2f61af05914082 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Thu, 26 May 2016 16:12:19 +0100 Subject: [PATCH] toaster: ToasterTable widget add an 'a' to Name in Exception class Signed-off-by: Michael Wood --- lib/toaster/toastergui/widgets.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py index 034c867df43..584bde7db51 100644 --- a/lib/toaster/toastergui/widgets.py +++ b/lib/toaster/toastergui/widgets.py @@ -50,7 +50,7 @@ logger = logging.getLogger("toaster") from toastergui.tablefilter import TableFilterMap -class NoFieldOrDataNme(Exception): +class NoFieldOrDataName(Exception): pass class ToasterTable(TemplateView): @@ -337,10 +337,11 @@ class ToasterTable(TemplateView): if not field: field = col['static_data_name'] if not field: - raise NoFieldOrDataNme("Must supply a field_name or" - "static_data_name for column" - "%s.%s" % - (self.__class__.__name__, col)) + raise NoFieldOrDataName("Must supply a field_name or" + "static_data_name for column" + "%s.%s" % + (self.__class__.__name__, col) + ) # Check if we need to process some static data if "static_data_name" in col and col['static_data_name']: -- 2.47.3