From fafe6c120e440c9b663b1c8dd1028e5c865c6d6a Mon Sep 17 00:00:00 2001 From: GingerIndustries <75683114+GingerIndustries@users.noreply.github.com> Date: Wed, 5 Oct 2022 07:38:52 -0400 Subject: [PATCH] More minor fixes - Added TypeError to JSON decode error handler - Added README to pyproject.toml - Bumped version to 1.0.3 --- pyproject.toml | 3 ++- sechat/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bf0c348..f26c865 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/sechat/__init__.py b/sechat/__init__.py index a309bb6..1353859 100644 --- a/sechat/__init__.py +++ b/sechat/__init__.py @@ -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()