From ee1d2130c58a6ed5c93fa6b5a21c10e73c1e5606 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Aug 01 2019 07:58:45 +0000 Subject: secrets import is missing 'else' variant Later in code 'secrets' is tested for its existence, so it should be set to None if it wasn't imported. Fixes: https://pagure.io/koji/issue/1590 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 20c4507..2f13fa6 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -49,6 +49,7 @@ try: import secrets except ImportError: import random + secrets = None import rpm import six