We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d14d18 commit be589c2Copy full SHA for be589c2
src/warnet/graph.py
@@ -1,5 +1,6 @@
1
import os
2
import random
3
+import sys
4
from importlib.resources import files
5
from pathlib import Path
6
@@ -34,7 +35,13 @@ def custom_graph(
34
35
fork_observer: bool,
36
fork_obs_query_interval: int,
37
):
- datadir.mkdir(parents=False, exist_ok=False)
38
+ try:
39
+ datadir.mkdir(parents=False, exist_ok=False)
40
+ except FileExistsError as e:
41
+ print(e)
42
+ print("Exiting network builder without overwriting")
43
+ sys.exit(1)
44
+
45
# Generate network.yaml
46
nodes = []
47
connections = set()
0 commit comments