Do not format message before passing it to self.pl.warn
Catch errors from tree_status

Fixes #341
Merge pull request #1013 from ZyX-I/fix-341

Catch errors from tree_status