<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
You Speak Türkish?<BR> <BR>> From: nicdumz@gmail.com<BR>> Date: Sun, 26 Apr 2009 01:07:30 +0900<BR>> To: pywikipedia-l@lists.wikimedia.org<BR>> Subject: Re: [Pywikipedia-l] [Pywikipedia-svn] SVN: [6685] branches/rewrite/pywikibot<BR>> <BR>> 2009/4/24 <russblau@svn.wikimedia.org>:<BR>> > When server is under heavy load, it may time out (http code 504) on API queries with high limits; this revision lets QueryGenerator instances catch these errors, lower the query limit, and retry.<BR>> ><BR>> <BR>> That's an interesting change, because those 504 happen quite often =)<BR>> <BR>> > #TODO: do some error correcting stuff<BR>> > + if request.data[0].status == 504:<BR>> > + raise Server504Error("Server %s timed out" % site.hostname())<BR>> <BR>> This, however, doesn't seem to work as expected. From time to time, I<BR>> get some tracebacks :<BR>> <BR>> ERROR: Traceback (most recent call last):<BR>> File "/home/nicdumz/pywikipedia/pywikibot/data/api.py", line 189, in submit<BR>> body=params)<BR>> File "/home/nicdumz/pywikipedia/pywikibot/comms/http.py", line 102, in request<BR>> if request.data[0].status == 504:<BR>> AttributeError: 'int' object has no attribute 'status'<BR>> <BR>> WARNING: Waiting 5 seconds before retrying.<BR>> <BR>> But it's nothing critical, because the error is caught, and the query<BR>> is sent again.<BR>> <BR>> -- <BR>> Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]<BR>> <BR>> _______________________________________________<BR>> Pywikipedia-l mailing list<BR>> Pywikipedia-l@lists.wikimedia.org<BR>> <A href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia">https://lists.wikimedia.org/mailman/listinfo/pywikipedia</A>-<BR><br /><hr />Windows Live™ Photos ile fotoğraflarınızı kolayca paylaşımı. <a href='http://www.microsoft.com/windows/windowslive/products/photos.aspx' target='_new'>Sürükle bırak</a></body>
</html>