Skip to content

Commit

Permalink
Update user_guide_lib.rst (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0tonic committed Jul 18, 2023
1 parent dafb73c commit 8adecb9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/source/user_guide_lib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ Here we keep most of the default options and use the
"wsgi_app": app,
}
server = wsgi.Server(**server_args)
try:
server.start()
except KeyboardInterrupt:
print("Received Ctrl-C: stopping...")
finally:
server.stop()

try:
server.start()
except KeyboardInterrupt:
print("Received Ctrl-C: stopping...")
finally:
server.stop()

Options are passed as Python dict, see the :doc:`user_guide_configure` for
details.
Expand Down

0 comments on commit 8adecb9

Please sign in to comment.