Xqt created this task.
Xqt added projects: Pywikibot, Wikimedia-Hackathon-2022.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **List of steps to reproduce** (step by step, including full links if 
applicable):
  
  - add a not existent folder to user_scripts config variable
  - run any script which is not inside the scripts folder
  
  **What happens?**:
  
    ERROR: checkvotes.py not found! Misspelling?
    Traceback (most recent call last):
      File "C:\pwb\GIT\core\pwb.py", line 503, in <module>
        main()
      File "C:\pwb\GIT\core\pwb.py", line 487, in main
        if not execute():
      File "C:\pwb\GIT\core\pwb.py", line 434, in execute
        filename = find_filename(filename)
      File "C:\pwb\GIT\core\pwb.py", line 409, in find_filename
        return find_alternates(filename, path_list)
      File "C:\pwb\GIT\core\pwb.py", line 311, in find_alternates
        for script_name in folder.iterdir():
      File "C:\Python310\lib\pathlib.py", line 1015, in iterdir
        for name in self._accessor.listdir(self):
    FileNotFoundError: [WinError 3] Das System kann den angegebenen Pfad nicht 
finden: 'C:\\pwb\\GIT\\core\\xqbot'
    CRITICAL: Exiting due to uncaught exception <class 'FileNotFoundError'>
  
  **What should have happened instead?**:
  Print a warning that the folder does not exists and continue with the next 
folder

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

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

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, Kitanago, MutazAwad, Mhmohona, 
Jyoo1011, Kasyap, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, 
Wenyi, VisbyStar, Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, SBisson, mys_721tx, WMDE-Fisch, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to