changeset 6131:cb45a8287559

fix AttributeError in multifile action they only happened when first something did go wrong while copying or moving the files and it then failed to assemble the failure message.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Jun 2017 17:40:41 +0200
parents 7f0616feeae9
children df65dcf7daea
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Tue Apr 11 22:53:58 2017 +0200
+++ b/MoinMoin/action/AttachFile.py	Thu Jun 01 17:40:41 2017 +0200
@@ -572,7 +572,7 @@
                 new_pagename=dest_pagename,
                 new_filename=u'*')
         if fails:
-            msg += " " + _("Failed: %s", ", ".join(fails))
+            msg += " " + _("Failed: %s") % ", ".join(fails)
         return upload_form(pagename, request, msg=msg)
     if action == 'cp':
         dest_pagename = request.form.get('multi_dest_pagename')
@@ -589,7 +589,7 @@
                 new_pagename=dest_pagename,
                 new_filename=u'*')
         if fails:
-            msg += " " + _("Failed: %s", ", ".join(fails))
+            msg += " " + _("Failed: %s") % ", ".join(fails)
         return upload_form(pagename, request, msg=msg)
     return u'unsupported multifile operation'