Error executing main.py
salacpavel opened this issue · comments
salacpavel commented
Traceback (most recent call last):
File "C:\apps\routeros-scanner-main\main.py", line 62, in
main(args)
File "C:\apps\routeros-scanner-main\main.py", line 31, in main
res = command.run_ssh(ssh_client)
File "C:\apps\routeros-scanner-main\commands\dns.py", line 16, in run_ssh
sus_dns, recommendation = self.check_results_ssh(res, enabled)
File "C:\apps\routeros-scanner-main\commands\dns.py", line 27, in check_results_ssh
if int(item['ttl'].partition('s')[0]) > 200000:
ValueError: invalid literal for int() with base 10: '2h11m36'
Vaclav Jirovsky commented
same here:
...(truncated)...
if int(item['ttl'].partition('s')[0]) > 200000:
ValueError: invalid literal for int() with base 10: '1d'
Vaclav Jirovsky commented
@salacpavel see workaround in #14
salacpavel commented
That did it, thank you.