Update opmenu.py

Error control improvement. TODO: Loggin system