From 27b212d2b7ac65fa868ce23ad6e66681ac902bec Mon Sep 17 00:00:00 2001 From: nir0s Date: Sat, 17 Feb 2018 20:21:50 +0200 Subject: [PATCH] Add LogzioException class Currently the module raises generic Exception (very "don't do it") --- logzio/exceptions.py | 2 ++ logzio/handler.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 logzio/exceptions.py diff --git a/logzio/exceptions.py b/logzio/exceptions.py new file mode 100644 index 0000000..9453722 --- /dev/null +++ b/logzio/exceptions.py @@ -0,0 +1,2 @@ +class LogzioException(Exception): + pass diff --git a/logzio/handler.py b/logzio/handler.py index e685a22..3399af7 100644 --- a/logzio/handler.py +++ b/logzio/handler.py @@ -6,6 +6,7 @@ import traceback import logging.handlers from .sender import LogzioSender +from .exceptions import LogzioException class LogzioHandler(logging.Handler):