It would have been more tactful than asking him not to show up. More likely both sides, neither of which wanted Obama there, would agree that some practicable matter like security not being in place on such short notice made it infeasible for Obama to attend.
Practicle