Bug fix. The exception string is now printed instead of the undefined "output" variable in the except clause.