No accidents are so unlucky [bad] but that the wise may draw some advantage [good] from them.
or simply: