https://bugzilla.wikimedia.org/show_bug.cgi?id=69896
Bug ID: 69896 Summary: upload.py ignores the -simulate global option Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: pywikipedia-b...@lists.wikimedia.org Reporter: martinezn...@gmail.com Web browser: --- Mobile Platform: --- Running upload.py with the -simulate argument makes no difference. Files are uploaded to the wiki regardless of -simulate meaning "do not write anything to the wiki". I tested it on a wiki when it allowed uploads. I've also tested it on a test wiki where uploads are not enabled, so it pops an error with a traceback, that will be more meaningful: $ python pwb.py upload.py -simulate -family:test-1-23 TestFile.png test > The filename on the target wiki will default to: TestFile.png > Enter a better name, or press enter to accept: > The suggested description is: > test > Do you want to change this description? ([y]es, [N]o) > Uploading file to test-1-23:es via API.... > ERROR: Upload error: > Traceback (most recent call last): > File "scripts/upload.py", line 218, in upload_image > ignore_warnings=self.ignoreWarning) > File "/path/pywikibot/tools.py", line 310, in wrapper > return method(*__args, **__kw) > File "/path/pywikibot/site.py", line 3938, in upload > result = req.submit() > File "/path/pywikibot/data/api.py", line 458, in submit > raise APIError(code, info, **result["error"]) > APIError: uploaddisabled: Uploads are not enabled. Make sure $wgEnableUploads > is set to true in LocalSettings.php and the PHP ini setting file_uploads is > true -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l