From 5e76ee775d279beb8beab69046cd98956af53fa2 Mon Sep 17 00:00:00 2001 From: phzhik Date: Mon, 21 Aug 2023 16:22:41 +0400 Subject: [PATCH] * Disable CDEK authorization during migration --- cdek/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cdek/api.py b/cdek/api.py index 1eb1e17..8f6e068 100644 --- a/cdek/api.py +++ b/cdek/api.py @@ -117,4 +117,6 @@ class CDEKClient: client = CDEKClient(settings.CDEK_CLIENT_ID, settings.CDEK_CLIENT_SECRET) -client.authorize() + +if not is_migration_running(): + client.authorize()