Zoranzoki21 added a comment.
In T259756#6364925 <https://phabricator.wikimedia.org/T259756#6364925>, @Xqt wrote: > This can happen for so many scripts which use a Site object. We could have a new global option `-notraceback` to hide it or hide the traceback by default except `-verbose` option is set or have a config variable to hide the traceback. Or do never raise this exception but just show the warning and leave. The trick is made by `sys.traceback` setting to 0 which is 1000 by default. What do you think. Do you have another idea? We should just show warning/error, no full traceback per default. For debugging purposes, traceback is okay and user should have option to see it. But for this, I would like to more users says own opinion. In T259756#6364962 <https://phabricator.wikimedia.org/T259756#6364962>, @Xqt wrote: > New behaviour: > > C:\pwb\GIT\core>pwb login -family:wiktionary -lang:rs > ERROR: UnknownSite: Language 'rs' does not exist in family wiktionary > > C:\pwb\GIT\core> Much better! I've tested this patch, and I have this behaviour also. TASK DETAIL https://phabricator.wikimedia.org/T259756 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Zoranzoki21 Cc: Xqt, Aklapper, Zoranzoki21, pywikibot-bugs-list, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
