Bugs item #3606277, was opened at 2013-02-27 14:29
Message generated for change (Tracker Item Submitted) made by reza1615
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606277&group_id=93107

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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: reza  (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: creation of some items shows session-failure error

Initial Comment:
wikipedia.py for creation of some items shows session-failure error but if we 
run code many time for that name it will create!!

 i.e:
ائل تپه سی

my code was

# -*- coding: utf-8  -*-
import wikipedia
site = wikipedia.getSite('fa')
name =u"ائل تپه سی"
page = wikipedia.Page(site, name)
data = wikipedia.DataPage(page)
try:
    items = data.get()
except wikipedia.NoPage:
    data.createitem(u"Bot: Importing article from Persian wikipedia") 
except Exception,e:
    wikipedia.output('\03{lightred}Passed! error was : '+str(e)+' \03{default}')

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606277&group_id=93107

_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to