It’s part of the emonPi software, in the lcd folder, specifically lines 336-403 of emonPiLCD.py

However if you add the missing file to /boot it should then work correctly and you will be able to see the IP number, it’s failing as it cannot find the /boot/emonSD-xxx file, wouldn’t it be easier to

sudo touch /boot/emonSD-xxx

rather than start editing the code and possibly preventing future updates happening due to local changes?