--private-key is optional

This commit is contained in:
Sarah 2021-10-18 15:14:15 +02:00
parent 7786cc1112
commit ebef954cf9
No known key found for this signature in database
GPG key ID: 708F7ACE058F0186

View file

@ -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()