Getting format error in code testing for REPL #FF0

Failed to execute /app/your_shell.sh: fork/exec /app/your_shell.sh: exec format error
remote: [tester::#FF0] Test failed

I get the error above for the code below:
while True:
try:
# Read user input
command = input(“$ “)
# Execute command
if command == “exit”:
break
else:
sys.stdout.write(f”{command}: " + “command” + " not found\n”)
sys.stdout.flush()

    except EOFError:
        break

I can’t see an error in my code it works fine in my local and I get exactly the same output as in the challenge. I did even try it with color red as well as small changes in the code. I couldn’t find any resource online as well