]> git.ipfire.org Git - collecty.git/commitdiff
python: Declare all exceptions
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Dec 2021 21:04:15 +0000 (21:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Dec 2021 21:04:15 +0000 (21:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_collecty/ping.c

index 5a1ab9cc7d63c35edfc7aa3ec2539743339e60ab..949317f5836ba12c5b47d39147703fe4178912c8 100644 (file)
 
 #include "_collectymodule.h"
 
+PyObject* PyExc_PingError = NULL;
+PyObject* PyExc_PingAddHostError = NULL;
+PyObject* PyExc_PingNoReplyError = NULL;
+
 static void Ping_dealloc(PingObject* self) {
        if (self->ping)
                ping_destroy(self->ping);