Bugs item #1898707, was opened at 2008-02-21 13:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=189870…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dashiva (magnusrk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Infinity loop on missing api.php
Initial Comment:
If api.php isn't at the default /w/api.php, or apipath() is defined but gives the
wrong value, the bot keeps requesting the page over and over with no notification to the
user.
Eventually python reaches the maximum recursion depth, throws, and the script stops a
minute before starting again. At each pause it prints a warning saying it couldn't
find <url>, but none of the warnings appeared until I stopped the script with ctrl-c
(might be windows/py2.4 specific).
I think the best solution would be to distinguish between "Could not load
api.php" and "Successfully loaded some page, but it doesn't look like
api.php". In the latter case, there isn't much to gain from trying over and
over.
(Off topic: How about a scriptpath() for setting path/querypath/apipath all in one?
They're usually in the same directory.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=189870…