Skip to content

Commit

Permalink
Merge pull request #19 from mchwalisz/master
Browse files Browse the repository at this point in the history
fix syntax error
  • Loading branch information
g-oikonomou committed Jul 24, 2018
2 parents 3b3ac51 + 3fca657 commit 455a3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensniff.py
Expand Up @@ -170,7 +170,7 @@ def read_frame(self):
per_out = self.port.readline().rstrip()
try:
logger.info("Peripheral: %s%s" % (b.decode(), per_out.decode()))
except UnicodeDecodeError, e:
except UnicodeDecodeError as e:
logger.info("Error decoding peripheral output: %s"%e)
stats['Non-Frame'] += 1
return ''
Expand Down

0 comments on commit 455a3ad

Please sign in to comment.