Put out some white wine vinegar in a jar laced with washing up liquid and caught a couple of dozen fruit flies overnight.