unfortunate hack.  str(ex) doesn't work, must use str(ex.args[0])