Skip to content

Commit

Permalink
Merge pull request #57 from CBIIT/LDlink_3.6.1
Browse files Browse the repository at this point in the history
change verbeage of API error message
  • Loading branch information
kvnjng authored Apr 25, 2019
2 parents ed08c5f + 743451d commit 5a2a01f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions LDlink/LDlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def ldhap():
except:
return sendTraceback(None)
else:
return sendJSON("Please use LDLink API when accessing modules programmatically.")
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
else:
# API REQUEST
web = False
Expand Down Expand Up @@ -535,7 +535,7 @@ def ldmatrix():
except:
return sendTraceback(None)
else:
return sendJSON("Please use LDLink API when accessing modules programmatically.")
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
else:
# API REQUEST
web = False
Expand Down Expand Up @@ -598,7 +598,7 @@ def ldpair():
except:
return sendTraceback(None)
else:
return sendJSON("Please use LDLink API when accessing modules programmatically.")
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
else:
# API REQUEST
web = False
Expand Down Expand Up @@ -654,7 +654,7 @@ def ldpop():
except:
return sendTraceback(None)
else:
return sendJSON("Please use LDLink API when accessing modules programmatically.")
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
else:
# API REQUEST
web = False
Expand Down Expand Up @@ -706,7 +706,7 @@ def ldproxy():
except:
return sendTraceback(None)
else:
return sendJSON("Please use LDLink API when accessing modules programmatically.")
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
else:
# API REQUEST
web = False
Expand Down Expand Up @@ -764,7 +764,7 @@ def snpchip():
except:
return sendTraceback(None)
else:
return sendJSON("Please use LDLink API when accessing modules programmatically.")
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
else:
# API REQUEST
web = False
Expand Down Expand Up @@ -856,7 +856,7 @@ def snpclip():
except:
return sendTraceback(None)
else:
return sendJSON("Please use LDLink API when accessing modules programmatically.")
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
else:
# API REQUEST
web = False
Expand Down

0 comments on commit 5a2a01f

Please sign in to comment.