Skip to content

Commit 5a2a01f

Browse files
authored
Merge pull request #57 from CBIIT/LDlink_3.6.1
change verbeage of API error message
2 parents ed08c5f + 743451d commit 5a2a01f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

LDlink/LDlink.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def ldhap():
448448
except:
449449
return sendTraceback(None)
450450
else:
451-
return sendJSON("Please use LDLink API when accessing modules programmatically.")
451+
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
452452
else:
453453
# API REQUEST
454454
web = False
@@ -535,7 +535,7 @@ def ldmatrix():
535535
except:
536536
return sendTraceback(None)
537537
else:
538-
return sendJSON("Please use LDLink API when accessing modules programmatically.")
538+
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
539539
else:
540540
# API REQUEST
541541
web = False
@@ -598,7 +598,7 @@ def ldpair():
598598
except:
599599
return sendTraceback(None)
600600
else:
601-
return sendJSON("Please use LDLink API when accessing modules programmatically.")
601+
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
602602
else:
603603
# API REQUEST
604604
web = False
@@ -654,7 +654,7 @@ def ldpop():
654654
except:
655655
return sendTraceback(None)
656656
else:
657-
return sendJSON("Please use LDLink API when accessing modules programmatically.")
657+
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
658658
else:
659659
# API REQUEST
660660
web = False
@@ -706,7 +706,7 @@ def ldproxy():
706706
except:
707707
return sendTraceback(None)
708708
else:
709-
return sendJSON("Please use LDLink API when accessing modules programmatically.")
709+
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
710710
else:
711711
# API REQUEST
712712
web = False
@@ -764,7 +764,7 @@ def snpchip():
764764
except:
765765
return sendTraceback(None)
766766
else:
767-
return sendJSON("Please use LDLink API when accessing modules programmatically.")
767+
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
768768
else:
769769
# API REQUEST
770770
web = False
@@ -856,7 +856,7 @@ def snpclip():
856856
except:
857857
return sendTraceback(None)
858858
else:
859-
return sendJSON("Please use LDLink API when accessing modules programmatically.")
859+
return sendJSON("This web API route does not support programmatic access. Please use the API routes specified on the API Access web page.")
860860
else:
861861
# API REQUEST
862862
web = False

0 commit comments

Comments
 (0)