Fix a traceback on adhoc error