From 2de666e92c82d9b743e3211add69ead0d4783f11 Mon Sep 17 00:00:00 2001 From: nir0s Date: Sat, 17 Feb 2018 20:25:05 +0200 Subject: [PATCH] Use LogzioException when validating token --- logzio/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logzio/handler.py b/logzio/handler.py index 3399af7..d7ab03c 100644 --- a/logzio/handler.py +++ b/logzio/handler.py @@ -19,7 +19,7 @@ class LogzioHandler(logging.Handler): debug=False): if token is "": - raise Exception("Logz.io Token must be provided") + raise LogzioException("Logz.io Token must be provided") self.logzio_type = logzio_type