On Jan 16, 7:50 am, Junkone <junko... / gmail.com> wrote:
> Hello
> begin
>         if(nil|pattern.match(details)) then
>                 id=$1
>                 rec=Scans.find(id)
>                 rec.scannable=MARKTRUE
>                 rec.save
>         else
>                 badpattern=true
>         end
>         rescue RecordNotFound
>         badpattern=true
>
> end
>
> I still get the prog stopping and printing out the exception
> Pl choose alert action?  3 1000

uninitialized constant RecordNotFound (NameError)

This is telling you that RecordNotFound has not been defined. Maybe
you've forgotten to include something?