Skip to content

Commit

Permalink
Remove another unnecessary exception traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
rgov committed Jul 25, 2020
1 parent 17562ae commit 9cc8ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umodbus/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def execute_route(self, meta_data, request_pdu):
except ModbusError as e:
function_code = get_function_code_from_request_pdu(request_pdu)
return pack_exception_pdu(function_code, e.error_code)
except Exception as e:
log.exception('Could not handle request: {0}.'.format(e))
except Exception:
log.exception('Could not handle request')
function_code = get_function_code_from_request_pdu(request_pdu)

return pack_exception_pdu(function_code,
Expand Down

0 comments on commit 9cc8ae7

Please sign in to comment.