You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm probably doing something wrong but I was getting the below error when I used the timeout argument.
Traceback (most recent call last):
File "./check_snmp_extend.py", line 497, in
main()
File "./check_snmp_extend.py", line 449, in main
do_the_main_stuff()
File "./check_snmp_extend.py", line 87, in f2
signal.alarm(options.timeout) # triger alarm in timeout_time seconds
I just added an int() around it and it seemed to work after that:
signal.alarm(int(options.timeout)) # triger alarm in timeout_time seconds
The text was updated successfully, but these errors were encountered:
I'm probably doing something wrong but I was getting the below error when I used the timeout argument.
I just added an
int()
around it and it seemed to work after that:signal.alarm(int(options.timeout)) # triger alarm in timeout_time seconds
The text was updated successfully, but these errors were encountered: