Lund police said the man brought the note and a knife to the 7-Eleven store near the Lund train station in an attempt to steal $1,800 to cover his gambling debts so he wouldn't lose his apartment, Swedish news agency TT reported Thursday.
"Hello! This is a robbery! Don't panic, I am not going to hurt you. Just do what I say! Put 12,000 kronor ($1,800) in the bag. I want no more than that! I am really sorry about this," the note read.
Employees pushed the alarm button and police promptly arrived and arrested the man.
The robber, who had no previous criminal history, told the court he had been depressed and had recently become divorced at the time of the incident.
He was sentenced to probation and ordered to undergo therapy.
Caroline Berg Eriksen: Soccer player's wife triggers debate with post-birth selfie
18-year-old elf alleges mall Santa pinched her buttocks on the job