nifey/epub2sphinx

Handle --serve failing when the port is already used

Closed this issue · 0 comments

nifey commented

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.