Warning! Do not attempt to repair electrical or related problems if you are not qualified to do so! However, if you are still eager to do it yourself, then first turn-off or unplug the circuit (switch off the main breaker if you want). After that, carefully wind insulation on the exposed wire by using a vinyl electrical tape.