Ugandan lawmakers on Tuesday passed a new version of a bill that removes a clause which appeared to criminalize identifying as LGBTQ.

President Yoweri Museveni last month returned the bill back to the national assembly, asking for changes that differentiate between identifying as LGBTQ and actually engaging in homosexual acts.

Homosexuality is already illegal in the East African country under a colonial-era law criminalizing sex acts "against the order of nature." The punishment for that offense is life imprisonment.

SECOND KENYAN PASTOR JAILED AS STARVATION CULT DEATH TOLL SURPASSES 100

The new law prescribes the death penalty for "aggravated homosexuality," which is defined as cases of sexual relations involving people infected with HIV as well as minors and other categories of vulnerable people.

A suspect convicted of "attempted aggravated homosexuality" can be jailed for 14 years and the offense of "attempted homosexuality" is punishable by up to 10 years, according to the bill.

gay Ugandan couple

A gay Ugandan couple cover themselves with a pride flag as they pose for a photograph on March 25, 2023. Ugandan lawmakers passed a new version of an anti-gay bill Tuesday. (AP Photo, File)

Although the law would no longer criminalize those who identify as LGBTQ, jail terms of up to 20 years are proposed for those who advocate or promote the rights of LGBTQ people.

The bill passed by lawmakers on Tuesday will return to Museveni, who can sign or veto it. It was not immediately clear what other changes lawmakers made to the bill in a lengthy plenary session in the capital, Kampala.

CLICK HERE FOR THE FOX NEWS APP

Museveni is under pressure from the international community to veto the legislation.

The U.S. has warned of economic consequences if the legislation is enacted, and a group of U.N. experts described the bill previously passed by lawmakers as "an egregious violation of human rights."