Skip to content

Commit

Permalink
fix: use external rm
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzac committed Aug 7, 2024
1 parent cbeec00 commit 86df68b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/waku_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import os
import shutil
import subprocess

import pytest
import requests
Expand Down Expand Up @@ -198,8 +199,7 @@ def register_rln(self, **kwargs):
if rln_creds_set:
if rln_credential_store_ready(keystore_path, True):
try:
dir_path = keystore_path.removesuffix("/keystore.json")
shutil.rmtree(dir_path)
subprocess.call(["rm", "-f", f"{keystore_path}"])
except Exception as ex:
logger.error(f"Keystore removal before RLN registration failed {ex}")
raise
Expand Down

0 comments on commit 86df68b

Please sign in to comment.