mirror of
https://github.com/WikiTeam/wikiteam
synced 2024-11-12 07:12:41 +00:00
Merge pull request #225 from nemobis/master
Fix API check if only index is passed
This commit is contained in:
commit
4b81fa00f1
@ -1267,12 +1267,12 @@ def getParameters(params=[]):
|
||||
|
||||
if api:
|
||||
check = checkAPI(api=api, session=session)
|
||||
if check[0]:
|
||||
if api and check:
|
||||
index2 = check[1]
|
||||
api = check[2]
|
||||
print 'API is OK: ' + api
|
||||
else:
|
||||
print 'Error in API, please, provide a correct path to API'
|
||||
print 'Error in API. Please, provide a correct path to API'
|
||||
sys.exit(1)
|
||||
|
||||
if index and checkIndex(
|
||||
|
Loading…
Reference in New Issue
Block a user