A man who was found carrying a credit card knife did not know it was a banned weapon, a court has heard.
The 56-year-old pleaded guilty in the Bendigo Magistrates' Court to possessing a prohibited weapon after he was found with the knife in January.
The man had put his wallet through the scanner while proceeding through security at the court, when staff noticed the knife.
When asked about it, the man said he had it "in case I need to cut something".
The knife was seized and police interviewed the man, who admitted to having the knife. He said he carried it to cut ropes and use at picnics, as he had been caught out in the past.
More court news: Burglar given chance after turning life around
The man told police he had no idea a plastic knife would be considered a weapon.
Magistrate Daniel Muling asked the police to consider a diversion program, so the man could keep his "unblemished record".
The man was considered suitable for a diversion, under which Mr Muling ordered he make a $100 donation to the Salvation Army and write a letter of gratitude to the police informant for recommending him for diversion.
Have you signed up to the Bendigo Advertiser's daily newsletter and breaking news emails? You can register below and make sure you are up to date with everything that's happening in central Victoria.