nifey / epub2sphinx

epub2sphinx is a tool to convert epub files to ReST for Sphinx
https://pypi.org/project/epub2sphinx/
MIT License
12 stars 2 forks source link

Handle --serve failing when the port is already used #21

Closed nifey closed 2 years ago

nifey commented 2 years ago

Right now, if the port 8000 is already being used, the tool prints a stack trace.

We can instead catch that exception and try a different port number instead or just print that the port is unavailable.

We can also add an optional argument for the user to specify a port to serve on if --serve is used.