Skip to content

Commit 3831a29

Browse files
committed
Fix warning message if column was not found.
Should report the actual column index, not the list of all columns.
1 parent b0d168e commit 3831a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anonip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def process_line(self, line):
163163
try:
164164
loglist[decindex]
165165
except IndexError:
166-
logger.warning("Column {} does not exist!".format(self.columns))
166+
logger.warning("Column {} does not exist!".format(index))
167167
continue
168168
else:
169169
ip_str, ip = self.extract_ip(loglist[decindex])

0 commit comments

Comments
 (0)