anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: vantage6/vantage6
Issue: [Bug] Textual error in error message

**Describe the bug**
Textual error in string (error message) when running `vserver new` as non-privileged user: "{Style.RESET_ALL}" should not occur in the string "[info ] - Create a new server using 'vserver new --user{Style.RESET_ALL}' instead!".

**To Reproduce**
Steps to reproduce the behavior:
1. run `vserver new` as a non-privileged user
2. See error message

**Expected behavior**
String should not contain "{Style.RESET_ALL}"

**Screenshots**
<img width="594" alt="image" src="https://github.com/vantage6/vantage6/assets/9558262/85ff0efa-cad4-41b3-b8c4-00822bceb221">

**Details**
vantage6==3.8.5
vantage6-client==3.8.5
vantage6-common==3.8.5


Changed files:
vantage6/vantage6/cli/server.py

diff --git a/vantage6/vantage6/cli/server.py b/vantage6/vantage6/cli/server.py
index 205939ef..63c3c4b1 100644
--- a/vantage6/vantage6/cli/server.py
+++ b/vantage6/vantage6/cli/server.py
@@ -427,7 +427,7 @@ def cli_server_new(name: str, environment: str, system_folders: bool) -> None:
     if not check_config_writeable(system_folders):
         error("Your user does not have write access to all folders. Exiting")
         info(f"Create a new server using '{Fore.GREEN}vserver new "
-             "--user{Style.RESET_ALL}' instead!")
+             f"--user{Style.RESET_ALL}' instead!")
         exit(1)
 
     # create config in ctx location
Repository: vantage6/vantage6
Issue: [Bug] Ping exception when WS disconnected

**Describe the bug**
```
2023-05-16 15:16:56 - node           - ERROR    - Ping thread had an exception
Traceback (most recent call last):
  File "/vantage6/vantage6-node/vantage6/node/__init__.py", line 873, in __socket_ping_worker
    self.socketIO.emit('ping', namespace='/tasks')
  File "/usr/local/lib/python3.10/site-packages/socketio/client.py", line 393, in emit
    raise exceptions.BadNamespaceError(
socketio.exceptions.BadNamespaceError: /tasks is not a connected namespace.
```

**To Reproduce**
1. start node
2. restart the server (several times) 

Changed files:
vantage6-node/vantage6/node/__init__.py

diff --git a/vantage6-node/vantage6/node/__init__.py b/vantage6-node/vantage6/node/__init__.py
index 1cdaaa66..7463a3ec 100644
--- a/vantage6-node/vantage6/node/__init__.py
+++ b/vantage6-node/vantage6/node/__init__.py
@@ -870,7 +870,10 @@ class Node(object):
 
         while True:
             try:
-                self.socketIO.emit('ping', namespace='/tasks')
+                if self.socketIO.connected:
+                    self.socketIO.emit('ping', namespace='/tasks')
+                else:
+                    self.log.debug('SocketIO is not connected, skipping ping')
             except Exception:
                 self.log.exception('Ping thread had an exception')
             # Wait before sending next ping