Fix minor cron.py issues #64

Merged
pfm merged 13 commits from fix-cron-script into master 2022-05-06 19:25:13 +02:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit fdadc89c31 - Show all commits

View File

@ -74,6 +74,8 @@ def public_keys( keyhome ):
# confirms a key has a given email address
def confirm_key( content, email ):
tmpkeyhome = ''
if type(content) == 'str':
content = bytes(content, sys.getdefaultencoding())
while True:
tmpkeyhome = '/tmp/' + ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(12))