From f647538d62a558efa1e06542ba2c29226f187bac Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Tue, 6 Aug 2019 08:47:03 +0200 Subject: [PATCH] Lint fixes --- src/formdefinition.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/formdefinition.py b/src/formdefinition.py index 97edc07..7def906 100644 --- a/src/formdefinition.py +++ b/src/formdefinition.py @@ -49,7 +49,8 @@ class FormDefinition(object): elif self.fields_from is not None: return runscript.from_file(self.fields_from) else: - raise ValueError("Missing either 'fields' or 'fields_from' in '{}' form".format(self.name)) + msg = "Missing either 'fields' or 'fields_from' in '{}' form" + raise ValueError(msg.format(self.name)) def validate_field_defs(self, fields): """