Skip to content

Commit

Permalink
Only check strings
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Apr 21, 2015
1 parent 1d1b37d commit da50321
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions saltpylint/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit da50321

Please sign in to comment.