A bank robber has been jailed after giving out his full name and address to a cashier.
Dean Smith, 27, went to his local bank in Treorchy in Rhondda Cynon Taf to change his address - but decided to raid it later after seeing tills full of cash.
He returned 30 minutes later wearing socks over his shoes and sunglasses in an attempt to disguise himself.
When he demanded the cashier hand over all their money she refused - and Smith ran away from the Barclays Bank empty handed.
A court heard he was tracked down by police after telling the cashier Catherine Stockton his full name and address just half an hour earlier.
– Rachel Knight, prosecutor
She could see he was holding a bread knife across his body as he demanded all the cash to be handed over.
He was not shouting.
He was rushed but not angry or agitated. He sounded desperate.
Ms Stockton raised the alarm by pressing the panic button.
Smith, of Treorchy, South Wales, admitted attempted robbery and carrying a bladed weapon at the branch.
Steven Jeary, defending, said: "He told the police it was stupid and he was very sorry but he was desperate for money."
Judge Richard Twomlow jailed Smith for two and a half years at Merthyr Tydfil Crown Court.