Kizule created this task.
Kizule added projects: Pywikibot, Pywikibot-Scripts.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  When imagetransfer.py finds a possible duplicate before uploading, it asks 
does the user wants to ignore the duplicate or no.
  
  It happened to me. I confirmed that I want to script ignore duplicate and 
upload file, but after it, I got error and file wasn't uploaded.
  
    ------------------------------------------------------------
    0. Found image: [[Arquivo:Parteiii2abopcao3ga (1).jpg]]
    Arquivo enviado com MsUpload
    ============================================================
    
    >>> Transfer [[pt-br:Arquivo:Parteiii2abopcao3ga (1).jpg]] from 
ragnawave:pt-br to testniwiki:pt-br
    
    URL should be: 
https://ragnawave.com.br/wiki/images/4/41/Parteiii2abopcao3ga_%281%29.jpg
    The suggested description is:
    Esta imagem foi copiada de ragnawave:pt-br. A descrição original foi:
    
    Arquivo enviado com MsUpload
    
    {| class="wikitable"
    ! {{int:filehist-datetime}} || {{int:filehist-user}} || 
{{int:filehist-dimensions}} || {{int:filehist-comment}}
    |-
    | 2020-07-26T05:23:17Z || Waveadmin || 276×116 px (3520 bytes) || 
<nowiki>Arquivo enviado com MsUpload</nowiki>
    |}
    
    Uploading file to testniwiki:pt-br...
    Reading file 
https://ragnawave.com.br/wiki/images/4/41/Parteiii2abopcao3ga_%281%29.jpg
    Downloaded 3520 bytes
    We got the following warning(s): duplicate: Uploaded file is a duplicate of 
['Parteiii2abopcao3ga.jpg'].
    Do you want to ignore? ([y]es, [N]o): y
    ERROR: Upload error:
    Traceback (most recent call last):
      File "/srv/paws/pwb/pywikibot/specialbots/_upload.py", line 400, in 
upload_file
        success = imagepage.upload(file_url,
      File "/srv/paws/pwb/pywikibot/page/__init__.py", line 2456, in upload
        return self.site.upload(self, source_filename=filename, source_url=url,
      File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1648, in wrapper
        return obj(*__args, **__kw)
      File "/srv/paws/pwb/pywikibot/site/_decorators.py", line 92, in callee
        return fn(self, *args, **kwargs)
      File "/srv/paws/pwb/pywikibot/site/_apisite.py", line 2946, in upload
        return self.upload(
      File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1648, in wrapper
        return obj(*__args, **__kw)
      File "/srv/paws/pwb/pywikibot/site/_decorators.py", line 92, in callee
        return fn(self, *args, **kwargs)
    TypeError: upload() got an unexpected keyword argument 
'offset'------------------------------------------------------------
    0. Found image: [[Arquivo:Pascoa.png]]
    Arquivo enviado com MsUpload
    ============================================================

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

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

To: Kizule
Cc: Aklapper, pywikibot-bugs-list, Kizule, Shalomori123, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to