Julianna Margulies (credit: Frederick M. Brown/Getty Images)

Julianna Margulies (credit: Frederick M. Brown/Getty Images)

(CBS SF/AP) – Julianna Margulies says playing a wronged political wife on TV gives her compassion for what Anthony Weiner’s spouse is going through.

READ MORE: Michelle Go, Killed In New York Subway Attack, To Be Mourned At San Francisco Chinatown Vigil

Watching Huma Abedin stand by New York mayoral candidate Weiner at a recent news conference reminded Margulies of how she played a similar scene in “The Good Wife” pilot.

Marguilies says she feels empathy for Abedin because people are quick to judge and comment.

But “The Good Wife” star said sexting scandals like that involving Weiner are the gift that keeps on giving for the CBS drama, keeping the show fresh.

READ MORE: Feds Announce $50B Plan To Fight Western Wildfires Where Forests Meet Civilization

It’s a reaction that makes her feel slightly guilty, Margulies told the Television Critics Association on Monday.

Before her stint on “The Good Wife,” Margulies starred on “ER” and had a recurring role on “The Sopranos.” She has appeared in the films, “City Island,” “Snakes on a Plane” and “Ghost Ship.”

“The Good Wife” starts its fifth season September 29 on KPIX 5.

MORE NEWS: Suspect In November Smash-and-Grab Robbery At High-End Sneaker Store In Santa Clara Arrested

(Copyright 2013 by CBS San Francisco and Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)