From f376d8584af0b4f8570387f3f7fa0e3550211ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20St=C3=A5hl?= Date: Fri, 20 Nov 2020 10:40:35 +0100 Subject: [PATCH] Fix broken exception logging (#173) --- custom_components/localtuya/pytuya/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/pytuya/__init__.py b/custom_components/localtuya/pytuya/__init__.py index 215876e..d089b37 100644 --- a/custom_components/localtuya/pytuya/__init__.py +++ b/custom_components/localtuya/pytuya/__init__.py @@ -137,7 +137,7 @@ class ContextualLogger: def exception(self, msg, *args): """Exception level log.""" - return self._logger.log(logging.EXCEPTION, msg, *args) + return self._logger.exception(msg, *args) def pack_message(msg):