From 70b655b686a4a8e5b36585acd4154d12edbf08d6 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sat, 3 Apr 2021 10:08:13 +0200 Subject: [PATCH] print error --- otp/Otp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/otp/Otp.py b/otp/Otp.py index c4f663a..21fa158 100644 --- a/otp/Otp.py +++ b/otp/Otp.py @@ -206,6 +206,7 @@ class Otp: params.update(R) xml = self.request(params) if xml["err"] != "OK": + logger.error("Error during activation: %s", xml) return Otp.NOK self.data.synchro(xml, self.generate_kma(self.codepin))