Fix formatter variable referenced before assignment  (#1432)
Fix formatter variable referenced before assignment  (#1432)

* Move basic formatter outside try/excerpt block

* Remove white space
FabioRosado/opsdroid,jacobtomlinson/opsdroid,opsdroid/opsdroid