add missing import statement
Merge pull request #2870 from dimagi/exception

add missing import statement