On Aug 20, 2013, at 4:43 PM, Merlijn van Deen <valhallasw(a)arctus.nl> wrote:
On 20 August 2013 22:18, William H. Magill
<magill(a)icloud.com> wrote:
Please insert URL to wiki: http//www.lotro-wiki.com
(...snip...)
ValueError: unknown url type: http//www.lotro-wiki.com
Try using
http://www.lotro-wiki.com (note the colon) instead.
Duh... That is poor error processing! Definitely not "user-friendly."
The traceback spew obscures the actual error message.
Not to mention "unknown url type" is not particularly descriptive of what
is not a TYPE of URL, but the actual value being supplied.
I realize that is RFC correct, however is it even possible (i.,e. does it make sense)
to use anything other than an "http" or "https" value?
Clearly "gopher" or "news" won't work.
I'm guessing that is a standard Python library call, so there is not much
this code can do with it. I.e. I don't know how or if you can eliminate the
traceback.
On Aug 20, 2013, at 4:48 PM, Lewis Cawte <lewiscawte(a)googlemail.com> wrote:
I believe
I've just spotted your problem:
"http//" isn't a valid protocol,
its "http://". I've just tested your
wiki in particular and it works for me, you could copy+paste in a URL to
a page instead of hand typing it. :)
The instructions need to be more obvious that you can do that -- namely that the
routine will "auto-truncate" the URL from a home page to the appropriate
"parts".
Of course, that begs the question -- Any arbitrary page on the wiki, or only the
home page?
Well, at least I can revise the Mac document so that the required information is
more clear.... and what the "Spew" implies! I tended to wind up writing lots
of
documentation for Freshmen, who really did need to have everything explained to them :)
T.T.F.N.
William H. Magill
# iMac11,3 Core i7 [2.93GHz - 8 GB 1067MHz] OS X 10.8.4
# MacBook Pro4.1 Core 2 Duo [2.5GHz - 4GB 667] OS X 10.6.8
# Macmini6,1 Intel Core i5 [2.5 Ghz - 4GB 1600MHz] OS X 10.8.3
magill(a)icloud.com
magill(a)mac.com
whmagill(a)gmail.com