omrikiei / aws_logging_handlers

AWS integration for python logging handlers(S3, Kinesis)
https://omrikiei.github.io/aws_logging_handlers/
MIT License
71 stars 27 forks source link

Check previous signal handler is callable during teardown #30

Closed slowsoon closed 2 years ago

slowsoon commented 2 years ago

signal.signal not only returns callable object but also SIG_DFL, SIG_IGN and None. so, need to check if previous handler is callable before calling.