--private-key is optional
This commit is contained in:
parent
7786cc1112
commit
ebef954cf9
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ parser.add_argument("--private-key", required=False)
|
|||
|
||||
def run():
|
||||
args = parser.parse_args()
|
||||
os.environ["NIX_SECRET_KEY_FILE"] = os.path.abspath(os.path.expanduser(args.private_key))
|
||||
if args.private_key is not None:
|
||||
os.environ["NIX_SECRET_KEY_FILE"] = os.path.abspath(os.path.expanduser(args.private_key))
|
||||
|
||||
logging.basicConfig(level=args.loglevel)
|
||||
uvloop.install()
|
||||
|
|
Loading…
Reference in a new issue