use print_exc() instead of format_exc()
Merge pull request #4870 from heliclei/develop

use print_exc() instead of format_exc()