Remove default arguments

main
Bob Mottram 2024-02-19 13:33:11 +00:00
parent 9bae9a1d52
commit 348df2f106
2 changed files with 4 additions and 2 deletions

View File

@ -46,8 +46,9 @@ def get_instance_actor_key(base_dir: str, domain: str) -> str:
def get_person_key(nickname: str, domain: str, base_dir: str,
key_type: str = 'public', debug: bool = False):
key_type: str, debug: bool):
"""Returns the public or private key of a person
key_type can be private or public
"""
if key_type == 'private':
key_pem = _get_local_private_key(base_dir, nickname, domain)

View File

@ -3024,7 +3024,8 @@ def send_post(signing_priv_key_pem: str, project_version: str,
auto_cw_cache)
# get the senders private key
private_key_pem = get_person_key(nickname, domain, base_dir, 'private')
private_key_pem = get_person_key(nickname, domain, base_dir,
'private', debug)
if len(private_key_pem) == 0:
return 6