diff --git a/saltpylint/strings.py b/saltpylint/strings.py index 5c960bf..34135a4 100644 --- a/saltpylint/strings.py +++ b/saltpylint/strings.py @@ -116,6 +116,10 @@ def visit_callfunc(self, node): # checking. continue + if not isinstance(inferred.value, basestring): + # If it's not a string, continue + continue + if BAD_FORMATTING_SLOT.findall(inferred.value): if self.config.un_indexed_curly_braces_always_error or \ sys.version_info[:2] < (2, 7):