mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
send-error-report: Fix test for name > 50 chars
A name > 50 chars causes a 500 internal server error and should be warned to the user but the code to do so currently doesn't work. Fix the logic. (From OE-Core rev: 844f8d46f522a994dbff00245c4ffb07452577a8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
83b0109149
commit
f2c04b450f
|
@ -88,7 +88,7 @@ def prepare_data(args):
|
||||||
log.error("Name needs to be provided either via "+userfile+" or as an argument (-n).")
|
log.error("Name needs to be provided either via "+userfile+" or as an argument (-n).")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
while len(args.name) <= 0 and len(args.name) < 50:
|
while len(args.name) <= 0 or len(args.name) > 50:
|
||||||
print("\nName needs to be given and must not more than 50 characters.")
|
print("\nName needs to be given and must not more than 50 characters.")
|
||||||
args.name, args.email = ask_for_contactdetails()
|
args.name, args.email = ask_for_contactdetails()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user