File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
tools/src/main/python/opengrok_tools/utils Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,13 @@ def __init__(self, call_dict):
138
138
self .api_timeout = None
139
139
call_timeout = call_dict .get (API_TIMEOUT_PROPERTY )
140
140
if call_timeout :
141
- if call_timeout .startswith ("$" ):
142
- call_timeout = os .environ .get (call_timeout [1 :], "" )
143
- if call_timeout .isdigit ():
144
- self .api_timeout = int (call_timeout )
141
+ if isinstance (call_timeout , str ):
142
+ if call_timeout .startswith ("$" ):
143
+ call_timeout = os .environ .get (call_timeout [1 :], "" )
144
+ if call_timeout .isdigit ():
145
+ self .api_timeout = int (call_timeout )
146
+ else :
147
+ self .api_timeout = call_timeout
145
148
146
149
self .async_api_timeout = None
147
150
call_api_timeout = call_dict .get (ASYNC_API_TIMEOUT_PROPERTY )
You can’t perform that action at this time.
0 commit comments