2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 02:22:31 +00:00

Make hmac import optional

Some environments do not have this module
This commit is contained in:
Jarrod Johnson
2025-09-12 16:57:37 -04:00
parent dd2b7be2ca
commit 7a2cb80f6a

View File

@@ -16,12 +16,13 @@ import sys
import struct
import time
import re
import hmac
import hashlib
try:
import json
import hmac
except ImportError:
json = None
hmac = None
class InvalidApiKey(Exception):
pass