Patch: raise exception when unable to patch old code