Skip to content

Commit

Permalink
Remove redundant exception traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
rgov committed Jul 25, 2020
1 parent 0faaf90 commit 17562ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions umodbus/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ def handle(self):
response_adu = self.process(mbap_header + request_pdu)
self.respond(response_adu)
except:
import traceback
log.exception('Error while handling request: {0}.'
.format(traceback.print_exc()))
log.exception('Error while handling request')
raise

def process(self, request_adu):
Expand Down

0 comments on commit 17562ae

Please sign in to comment.