mirror of https://gitlab.com/bashrc2/epicyon
Remove default arguments
parent
9bae9a1d52
commit
348df2f106
3
keys.py
3
keys.py
|
@ -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)
|
||||
|
|
3
posts.py
3
posts.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue