use find, not index

This commit is contained in:
Michel Oosterhof 2018-07-11 23:45:41 +04:00
parent bb450d7ff9
commit 058a5fb7c2
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class command_dd(HoneyPotCommand):
return
for arg in self.args:
if not arg.index('='):
if arg.find('=') == -1:
self.write('unknown operand: {}'.format(arg))
HoneyPotCommand.exit(self)
operand, value = arg.split('=')