The text seems to be a proverbial expression suggesting that even the worst book has something valuable to offer. It does not appear to exploit different meanings of a word or similar-sounding words for a humorous or double entendre effect.
No book was so bad , but some good might be got out of it .