Skip to content

Commit

Permalink
Fix a typo in example tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhen Li committed Apr 21, 2016
1 parent a47ee4d commit 7693f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ def test_handle_cypher_error(self):
driver = GraphDatabase.driver("bolt://localhost", auth=auth_token)
session = driver.session()
with self.assertRaises(RuntimeError):
# tag::handle-cypher-error
# tag::handle-cypher-error[]
try:
session.run("This will cause a syntax error").consume()
except CypherError:
raise RuntimeError("Something really bad has happened!")
finally:
session.close()
# end::handle-cypher-error
# end::handle-cypher-error[]

0 comments on commit 7693f07

Please sign in to comment.