It happened in India’s northwestern Rajasthan state after forest department officials removed the snake from a school.
They were holding the python and posing for pictures after successfully capturing it.
A man then moved in closer for a selfie and was attacked by the snake, which lunged forward and bit him on the shoulder.
The snake was then taken away, and the man only suffered minor injuries, according to India Today
The creature was being removed from a school in India’s northwestern Rajasthan state.