Browse Source

Add LogzioException class

Currently the module raises generic Exception (very "don't do it")
opensearch
nir0s 7 years ago
parent
commit
27b212d2b7
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      logzio/exceptions.py
  2. +1
    -0
      logzio/handler.py

+ 2
- 0
logzio/exceptions.py View File

@ -0,0 +1,2 @@
class LogzioException(Exception):
pass

+ 1
- 0
logzio/handler.py View File

@ -6,6 +6,7 @@ import traceback
import logging.handlers import logging.handlers
from .sender import LogzioSender from .sender import LogzioSender
from .exceptions import LogzioException
class LogzioHandler(logging.Handler): class LogzioHandler(logging.Handler):


Loading…
Cancel
Save