Skip to content

Commit e6a4a10

Browse files
authored
Make testkit backend handle UnsupportedServerProduct properly (#544)
1 parent ecb7930 commit e6a4a10

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testkitbackend/backend.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
import sys
2121
import traceback
2222

23-
from neo4j.exceptions import Neo4jError, DriverError, ServiceUnavailable
23+
from neo4j.exceptions import (
24+
DriverError,
25+
Neo4jError,
26+
UnsupportedServerProduct,
27+
)
2428

2529
import testkitbackend.requests as requests
2630

@@ -140,7 +144,7 @@ def _process(self, request):
140144
"Backend does not support some properties of the " + name +
141145
" request: " + ", ".join(unsused_keys)
142146
)
143-
except (Neo4jError, DriverError) as e:
147+
except (Neo4jError, DriverError, UnsupportedServerProduct) as e:
144148
log.debug(traceback.format_exc())
145149
if isinstance(e, Neo4jError):
146150
msg = "" if e.message is None else str(e.message)

0 commit comments

Comments
 (0)