Dvorapa created this task.
Dvorapa added projects: Toolforge, Pywikibot, Pywikibot-pagegenerators.py.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  If I run MySQL page generator for longer time (here is the example of cca 1.5 
day long run), it goes all the way through the retrieved list of pages and 
after bot.run() ends, bot throws the following error on labs (end therefore 
does not continue with the code following after bot.run()):
  
    422844 pages read
    0 pages written
    Execution time: 1 days, 33969 seconds
    Read operation time: 0 seconds
    Script terminated by exception:
    
    ERROR: AttributeError: 'NoneType' object has no attribute 'close'
    Traceback (most recent call last):
      File "pwb.py", line 257, in <module>
        if not main():
      File "pwb.py", line 250, in main
        run_python_file(filename, [filename] + args, argvu, file_package)
      File "pwb.py", line 119, in run_python_file
        main_mod.__dict__)
      File "./nepodporovane-parametry-infoboxu.py", line 290, in <module>
        main()
      File "./nepodporovane-parametry-infoboxu.py", line 277, in main
        bot2.run()  # guess what it does
      File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/bot.py",
 line 1479, in run
        for item in self.generator:
      File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/pagegenerators.py",
 line 2777, in MySQLPageGenerator
        for row in row_gen:
      File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/data/mysql.py",
 line 100, in mysql_query
        conn.close()
      File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 734, 
in close
        sock.close()
    AttributeError: 'NoneType' object has no attribute 'close'
    CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>

TASK DETAIL
  https://phabricator.wikimedia.org/T216741

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa
Cc: Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, AndyTan, Zylc, 1978Gage2001, 
aborrero, Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, 
Avicennasis, srodlund, Luke081515, mys_721tx, Gryllida, jayvdb, Dalba, Masti, 
scfc, Alchimista, coren, Rxy, Krenair, chasemp
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to