: TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

When i executed the following command on pysharm terminal, i get the following error:

command:
robot --loglevel TRACE -d results --variable tenant:sub-kw-mobile --variable environment:qa-b tenants/sub-kw-mobile

error:
Setup failed:
ValueError: Timeout value connect was <object object at 0x102d38d90>, but it must be an int, float or None.
[ ERROR ] Calling method ‘_start_keyword’ of listener ‘DebugLibrary’ failed: TypeError: unsupported operand type(s) for -: ‘NoneType’ and ‘int’

Note: The configured python interpreter is 3.8

So you have in Suite/Test Setup a keyword that is expecting a number (or None) but you gave something else.

You must identify what keyword call is in error, and since it happened in the DebugLibrary, you should try to run your test without that library use.

2 Likes