The narrow Democratic lead in deep-red western Pennsylvania is a “bit of a wake-up call,” House Speaker Paul Ryan is privately warning his fellow party members.
Ryan told House Republicans on Wednesday they need to “get to work,” fundraise and not be caught off guard heading into the midterm campaign season after Democrat Conor Lamb appeared to edge past his GOP opponent in a closely watched special congressional election.
Republicans poured millions into the race, attempting to vault state lawmaker Rick Saccone to victory. President Trump campaigned for Saccone last week.
But Lamb, a former Marine who bucked the national Democratic machine, came out roughly 700 votes ahead.
RELATED: Paul Ryan through his career
Paul Ryan through his career
Paul Ryan through his career
Speaker of the House Denis Hastert (L) administers the oath of office to Rep. Paul Ryan (R) of Wisconsin as his family looks on January 6, 1999 at the start of the 106th Congress. The oath is a recreation as the formal oath is administered to the entire congress as a body on the floor of the House. (photo by Rex Banner)
UNITED STATES - DECEMBER 12: Rep. Paul Ryan, R-Wis., speaks at a news conference in which House Republican leaders called for Permanent Tax Relief. (Photo By Tom Williams/Roll Call/Getty Images)
KRT US NEWS STORY SLUGGED: SOCIALSECURITY-DISCUSSION KRT PHOTOGRAPH BY GEORGE BRIDGES/KRT (April 14) Conversation on Social Security between Rep. Paul Ryan (R-WI), shown, and William Novelli, head of AARP, April 5, 2005 (lde) 2005 (Photo by George Bridges/MCT/MCT via Getty Images)
UNITED STATES - JULY 22: MEDICARE BRIEFING--Rep. Paul Ryan, R-Wisc., speaks at a Cato Institute briefing on Medicare reform in the Rayburn House Office Building. Tom Miller, director of Health Policy Studies at Cato, looks on. (Photo by Scott J. Ferrell/Congressional Quarterly/Getty Images)
WASHINGTON - SEPTEMBER 24: Rep. Paul Ryan (R-WI) questions Peter Orszag, director of the Congressional Budget Office, during a hearing on Capitol Hill about the impact of recent market turmoil on the federal budget on September 24, 2008 in Washington, DC. Orszag reported that while the impact is currently unknown, it is likely to be substantially less than $700 billion. (Photo by Brendan Hoffman/Getty Images)
WASHINGTON - APRIL 27: House Budget Committee ranking member Rep. Paul Ryan (R-WI) (R) delivers an opening statement during a conference committee meeting with Senate Budget Committee Chairman Kent Conrad (D-ND) (L) and House Budget Committee Chairman John Spratt (D-SC) in the U.S. Capitol April 27, 2009 in Washington, DC. House and Senate lawmakers have already struck a tentative deal on the FY2010 budget resolution and they hope to file a conference report after today's meeting. (Photo by Chip Somodevilla/Getty Images)
WASHINGTON - MARCH 19: (L-R) U.S. House Minority Whip Rep. Eric Cantor (R-VA), Rep. Dave Camp (R-MI) and Rep. Paul Ryan (R-WI) listen during a news conference on the health care legislation March 19, 2010 on Capitol Hill in Washington, DC. The House will vote on the Health Care Reform Legislation on Sunday, March 21. (Photo by Alex Wong/Getty Images)
Representative Paul Ryan, a Republican from Wisconsin and chairman of the House Budget Committee, speaks during a news conference at the U.S. Capitol in Washington, D.C., U.S., on Tuesday, April 5, 2011. U.S. House Republicans today unveiled a plan to overhaul the federal budget and slash the deficit in coming years by about three-quarters, with a $6-trillion cut in spending and 25 percent cap on tax rates. Photographer: Joshua Roberts/Bloomberg via Getty Images
MEET THE PRESS -- Pictured: Rep. Paul Ryan (R-WI) left, and moderator David Gregory, right, appear on 'Meet the Press' in Washington, D.C., Sunday, April 10, 2011. (Photo by William B. Plowman/NBC/NBCU Photo Bank via Getty Images)
MILWAUKEE, WI - APRIL 01: Republican Presidential candidate, former Massachusetts Gov. Mitt Romney (R) jokes with U.S. Rep Paul Ryan (C) (R-WI) during a pancake brunch at Bluemound Gardens on April 1, 2012 in Milwaukee, Wisconsin. With less than a week before the Wisconsin primary, Mitt Romney continues to campaign through the state. (Photo by Justin Sullivan/Getty Images)
WASHINGTON, DC - APRIL 26: House Budget Chairman Rep. Paul Ryan (R-WI) is introduced before speaking about 'America's Enduring Promise,' and the federal budget, in a speech at Georgetown University April 26, 2012 in Washington, DC. During his speech, Ryan said that his proposed budget confronts the nation's growing $15 trillion debt before it impacts future generations of Americans. (Photo by Win McNamee/Getty Images)
NORFOLK, VA - AUGUST 11: Republican presidential candidate, former Massachusetts Gov. Mitt Romney (L) jokes with Rep. Paul Ryan (R-WI) (R) after announcing him as the 'next PRESIDENT of the United States' during an event announcing him as his running mate in front of the USS Wisconsin August 11, 2012 in Norfolk, Virginia. Ryan, a seven term congressman, is Chairman of the House Budget Committee and provides a strong contrast to the Obama administration on fiscal policy. (Photo by Win McNamee/Getty Images)
UNITED STATES - SEPTEMBER 14: Rep. Paul Ryan, R-Wis., Vice Presidential candidate, waves to the crowd after addressing the Values Voter Summit at the Omni Shoreham Hotel in Woodley Park. Photo By Tom Williams/CQ Roll Call)
NEWPORT NEWS, VA - SEPTEMBER 18: Republican vice presidential candidate, U.S. Rep. Paul Ryan (R-WI), pauses as he speaks during a campaign rally at Christopher Newport University September 18, 2012 in Newport News, Virginia. Ryan continued to campaign for the upcoming presidential election. (Photo by Alex Wong/Getty Images)
MIAMI, FL - SEPTEMBER 22: Republican vice presidential candidate, U.S. Rep. Paul Ryan (R-WI) hugs waitress, Lourdes Alcerro, during a campaign stop at Versailles restaurant in the Little Havana neighborhood on September 22, 2012 in Miami, Florida. Ryan continues to campaign for votes across the country. (Photo by Joe Raedle/Getty Images)
Republican presidential candidate Mitt Romney (R) and running-mate Paul Ryan share a laugh as they are introduced at a campaign rally September 25, 2012 at Dayton International Airport in Vandalia, Ohio. AFP PHOTO/Mandel NGAN (Photo credit should read MANDEL NGAN/AFP/GettyImages)
Representative Paul Ryan, a Republican from Wisconsin, arrives at a news conference on Capitol Hill in Washington, D.C., U.S., on Tuesday, Oct. 20, 2015. Ryan said he'd be willing to run for speaker of the U.S. House if Republicans unify behind him now, end leadership crises and let him continue spending time with his family. Photographer: Andrew Harrer/Bloomberg via Getty Images
Representative Paul Ryan, a Republican from Wisconsin and chairman of the House Ways and Means Committee, center right, walks down the steps of the U.S. Capitol building following a vote in Washington, D.C., U.S., on Friday, Oct. 9, 2015. Ryan is under heavy pressure from fellow Republicans to run for U.S. House speaker after a hard-line faction forced Speaker John Boehner to resign and his top lieutenant to drop out of the race. Photographer: Andrew Harrer/Bloomberg via Getty Images
Representative Paul Ryan, a Republican from Wisconsin, walks to a meeting in the basement of the U.S. Capitol in Washington, D.C., U.S., on Tuesday, Oct. 20, 2015. Ryan is set to meet with a group of House conservatives Tuesday as he weighs a potential run to replace Speaker John Boehner under pressure from fellow Republicans. Photographer: Andrew Harrer/Bloomberg via Getty Images
Representative Paul Ryan, a Republican from Wisconsin and chairman of the House Ways and Means Committee, center, talks to the media after walking out of the U.S. Capitol building following a vote in Washington, D.C., U.S., on Friday, Oct. 9, 2015. Ryan is under heavy pressure from fellow Republicans to run for U.S. House speaker after a hard-line faction forced Speaker John Boehner to resign and his top lieutenant to drop out of the race. Photographer: Andrew Harrer/Bloomberg via Getty Images
UNITED STATES - OCTOBER 20 - Rep. Paul Ryan, R-Wis., speaks at a news conference following a House Republican meeting, on Capitol Hill in Washington, Tuesday, Oct. 20, 2015. Ryan is stating that he will run for speaker only if he receives enough GOP support by the end of the week. (Photo By Al Drago/CQ Roll Call)
US Speaker of the House Paul Ryan, Republican of Wisconsin, awaits the arrival of Israeli President Reuven Rivlin for a meeting at the US Capitol in Washington, DC, December 10, 2015. AFP PHOTO / SAUL LOEB / AFP / SAUL LOEB (Photo credit should read SAUL LOEB/AFP/Getty Images)
WASHINGTON, DC - DECEMBER 10: House Speaker Paul Ryan (R-WI) holds his weekly press briefing on Capitol Hill on December 10, 2015 in Washington, D.C. Paul Ryan spoke on topics including Donald Trump and the spending bill. (Photo by Allison Shelley/Getty Images)
WASHINGTON, DC - DECEMBER 15: Speaker of the House Paul Ryan, (R-WI) speaks during a Politico interview at the Grand Hyatt on December 15, 2015 in Washington DC. Ryan was interviewed by Politico's Chief White House Correspondent Mike Allen during a Politico Playbook Breakfast. (Photo by Mark Wilson/Getty Images)
U.S. House Speaker Paul Ryan (R-WI) (L) holds ceremonial swearing-in for Representative-elect Ralph Norman (R-SC) on Capitol Hill in Washington, U.S., June 26, 2017. REUTERS/Yuri Gripas
Speaker of the House Paul Ryan (R-WI) speaks after Senate Republicans unveiled their version of legislation that would replace Obamacare on Capitol Hill in Washington, U.S., June 22, 2017. REUTERS/Joshua Roberts
Speaker of the House Paul Ryan introduces his new tax policy at the National Association of Manufacturers Summit in Washington, U.S., June 20, 2017. REUTERS/Aaron P. Bernstein
Speaker of the House Paul Ryan visits members of the Republican team prior to the Congressional Baseball Game at Nationals Park in Washington, U.S., June 15, 2017. REUTERS/Aaron P. Bernstein
U.S. Speaker of the House Paul Ryan speaks to the press about President Donald Trump, former FBI Director James Comey and Russia investigations as Republican Conference Chairman Rep. Cathy McMorris Rodgers (R) looks on after a closed meeting of the Republican leadership of the House of Representatives on Capitol Hill in Washington, U.S. May 17, 2017. REUTERS/Aaron P. Bernstein
Speaker of the House Paul Ryan (R-WI) listens as U.S. President Donald Trump speaks during a meeting with members of the Republican Congressional leadership at the White House in Washington, U.S., June 6, 2017. REUTERS/Joshua Roberts
Discover More Like This
BACK TO SLIDE
The race in Pennsylvania's 18th District had still not been officially called. Lamb currently leads Saccone by 627 votes in a district Trump carried by 20 points in 2016.
The win would largely symbolic as the district is slated to be redrawn before the November election.
Publicly, Ryan was more upbeat, blaming the loss on Lamb’s centrist views and praising Trump for narrowing the gap between the two candidates.
“I think the President helped close this race,” he said.
Ryan reportedly urged colleagues to tout the GOP-passed tax plan and to remind voters Democrats opposed it as they enter the upcoming midterms.
House Minority Leader Nancy Pelosi, meanwhile, said Lamb’s strong showing means her party has won a clear victory.
Pelosi (D-Calif.) told The Associated Press that the triumph is “already there.”
There were several lessons learned from the race, Pelosi said.
RELATED: Rising political stars to watch in 2018
Rising political stars to watch in 2018
Rising political stars to watch in 2018
Randy Bryce (D)
Bryce made waves earlier this year when he announced he would run against House Speaker Paul Ryan in the 2018 midterm elections. Bryce, a Democrat, is a U.S. Army veteran, cancer survivor and union ironworker.
Rep. Scott Taylor, (R-VA)
A former Navy SEAL, Taylor has represented Virginia's 2nd District since he was elected in 2016. He has branded himself as a Republican lawmaker who is unafraid to speak out against President Trump and members of his own party -- recently calling out Roy Moore for allegations of sexual misconduct.
Rep. Seth Moulton, (D-MA)
39-year-old Seth Moulton has increasingly emerged as a prominent House member and one to watch within the Democratic party. He served four tours of duty in Iraq and notably serves as the. Recently, he has advocated for "a new generation" of Democratic leadership.
Rep. Chris Collins, (R-NY)
Collins was elected to represent New York's 27th district on Capitol Hill in 2012, and has since positioned himself as a vocal right-wing defender within the Republican party. He also came out as one of President Trump's most vocal supporters leading up to an after the 2016 election.
Rep. Raja Krishnamoorthi (D-Ill.)
Krishnamoorthi was elected in 2016 -- making him one of the more freshman lawmakers on Capitol Hill. Still, the former lawyer with a past of aiding the Obama administration has played an integral role this year in congressional investigations into the Trump campaign's potential ties to Russia. As a member of the House Committee on Oversight and Government Reform, he has taken many opportunities to speak critically of the clearance aides like Jared Kushner have -- and has firmly positioned himself as a staunch opponent of GOP efforts to repeal and replace Obamacare.
Sen. Lisa Murkowski, (R-AK)
As one of 21 women currently serving in the U.S. Senate, Murkowski has positioned herself as a more moderate leader within the Republican party. Murkowski refused to toe the party line on an attempted Obamacare repeal earlier this year, and has since raised skepticism over specific elements of the GOP tax bill and Republican Senate candidate Roy Moore.
Rep. Charlie Crist, (D-Fla.)
Crist is one of the more interesting players currently positioned in the political landscape. Once a Republican, Crist served as both attorney general and governor of Florida -- but then switched to a member of the Independent and eventually Democratic party. In his current House role representing Florida's 13th congressional district, Crist has emerged as a Democrat unafraid to take a middle-ground approach in his policy stances.
Sen. Tom Cotton, (R-AR)
As the youngest U.S. senator, Cotton's political future currently looks very bright. As one of the few Capitol Hill lawmakers that has yet to have a public feud -- on Twitter or otherwise -- with President Trump, Cotton was recently on the shortlist to replace Mike Pompeo as CIA director if Pompeo replaced Rex Tillerson as secretary of state.
Sen. Catherine Cortez Masto, (D-NV)
Catherine Cortez Masto is the first Latina ever elected to the U.S. Senate.
Governor-elect Ralph Northam (D-VA)
Northam was elected governor of Virginia in the series of "anti-Trump" Election Day victories Democrats celebrated in Nov. 2017. Northam's victory over Ed Gillespie signaled a potential shift in the oft-fraught over Virginia battleground state -- and Northam's gubernatorial tenure will be one to eye in the context of midterms and the 2020 presidential election.
Sen. Kirsten Gillibrand (D, NY)
Many who watch politics closely have noted Gillibrand as one to watch since she was appointed to Hillary Clinton's former Senate seat in 2009, and then elected in 2012. Early in her Senate career, Gillibrand used her position as a member of the Committee on Armed Services to chalk up a major legislative win by championing the repeal of "Don't Ask, Don't Tell." Gillibrand has also recently spoken out against sexual harassment allegations stemming from both Democratic and Republican offices -- calling on both Sen. Al Franken and President Trump to resign.
Discover More Like This
BACK TO SLIDE
“Don’t worry about going after Trump. Just tell people what you have in your heart and in your plan for them,” she said.
While Lamb didn’t campaign as anti-Trump, he did publicly disavow Pelosi and other party leaders such as Senate Majority Leader Charles Schumer (D-N.Y.).
Pelosi said she wasn’t bothered by Lamb’s pledge to not back her to lead House Democrats, saying, “That's the least of it.”