code duplication
This commit is contained in:
parent
d76fecb442
commit
8497a7c318
|
@ -11,13 +11,7 @@ class handler(requestHelper.asyncRequestHandler):
|
||||||
data = {"message": "unknown error"}
|
data = {"message": "unknown error"}
|
||||||
try:
|
try:
|
||||||
# Check arguments
|
# Check arguments
|
||||||
if requestHelper.checkArguments(self.request.arguments, ["k"]) == False:
|
if requestHelper.checkArguments(self.request.arguments, ["k", "to", "msg"]) == False:
|
||||||
raise exceptions.invalidArgumentsException()
|
|
||||||
|
|
||||||
if requestHelper.checkArguments(self.request.arguments, ["to"]) == False:
|
|
||||||
raise exceptions.invalidArgumentsException()
|
|
||||||
|
|
||||||
if requestHelper.checkArguments(self.request.arguments, ["msg"]) == False:
|
|
||||||
raise exceptions.invalidArgumentsException()
|
raise exceptions.invalidArgumentsException()
|
||||||
|
|
||||||
# Check ci key
|
# Check ci key
|
||||||
|
|
Loading…
Reference in New Issue
Block a user