Market: minor fix to error catching