From f23772e01ae8660748ac3587eea636e75cf9a2c8 Mon Sep 17 00:00:00 2001 From: Marcel Gregoriadis Date: Wed, 16 Oct 2024 11:30:20 +0200 Subject: [PATCH] Fix missing file key in ConfigBuilder --- ipv8/configuration.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ipv8/configuration.py b/ipv8/configuration.py index fb4467b50..50bdc04aa 100644 --- a/ipv8/configuration.py +++ b/ipv8/configuration.py @@ -396,8 +396,7 @@ def add_key_from_bin(self, alias: str, key_bin_b64: str, file_path: str | None = 'alias': alias, 'bin': key_bin_b64 } - if file_path is not None: - key_config['file'] = file_path + key_config['file'] = file_path self.config['keys'].append(key_config) return self