RICHMOND, Va. (AP) — A state law that was passed in response to Russian meddling in the 2016 presidential election will get another hearing in federal court.

Newspapers argue that the Maryland law amounts to the government telling the press what to publish.

READ MORE: Maryland Weather: A Cold Front Sweeps In As Severe Thunderstorm Watch Ends

It requires that they create a database identifying the purchasers of online ads and how much they spend in state and local elections. They say that violates the First Amendment.

READ MORE: Waterfront Partnership Of Baltimore Offers Free Exercise Classes Along Inner Harbor

The 4th U.S. Circuit Court of Appeals will hear arguments Wednesday in the state’s appeal of a judge’s ruling barring enforcement of some provisions of the law.

Maryland Attorney General Brian Frosh says the law serves an important purpose by protecting against foreign interference in elections and does not infringe on the newspapers’ right to exercise their editorial control and judgment.

MORE NEWS: Five People Shot Within An Hour On East Side Of Baltimore Sunday

(© Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)