Skip to content

Commit

Permalink
More minor fixes
Browse files Browse the repository at this point in the history
- Added TypeError to JSON decode error handler
- Added README to pyproject.toml
- Bumped version to 1.0.3
  • Loading branch information
gingershaped committed Oct 5, 2022
1 parent 2b76470 commit fafe6c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[tool.poetry]
name = "sechat"
version = "1.0.2"
version = "1.0.3"
description = "A BETTER Stack Exchange chat library."
readme = "README.md"
authors = ["Ginger"]

[tool.poetry.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion sechat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def run(self):
if data is not None and data != "":
try:
data = json.loads(data)
except json.JSONDecodeError:
except json.JSONDecodeError, TypeError:
self.logger.warning("Recived corrupted data: " + data)
else:
self.lastPing = time.time()
Expand Down

0 comments on commit fafe6c1

Please sign in to comment.