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