Skip to content

Commit 0e91e50

Browse files
committed
Fix a bug where we'll bail if the data directory doesn't exist
1 parent 4fa173e commit 0e91e50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

receptor/receptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, config, node_id=None, router_cls=None,
2424
self.controller_connections = []
2525
self.base_path = os.path.join(self.config.default_data_dir, self.node_id)
2626
if not os.path.exists(self.base_path):
27-
os.mkdir(os.path.join(self.config.default_data_dir, self.node_id))
27+
os.makedirs(os.path.join(self.config.default_data_dir, self.node_id))
2828
self.connection_manifest_path = os.path.join(self.base_path, "connection_manifest")
2929
self.stop = False
3030

0 commit comments

Comments
 (0)