commit/galaxy-central: natefoo: Fix "TypeError: array item must be char" on tool shed upload.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/b725cb712c8f/ changeset: b725cb712c8f user: natefoo date: 2012-05-08 18:32:01 summary: Fix "TypeError: array item must be char" on tool shed upload. affected #: 1 file diff -r 1c196b8747e4d976cbc1d294457b64a7e27fb26c -r b725cb712c8f7764120fdbdac5aa11d306d287f2 lib/galaxy/webapps/community/controllers/upload.py --- a/lib/galaxy/webapps/community/controllers/upload.py +++ b/lib/galaxy/webapps/community/controllers/upload.py @@ -122,6 +122,8 @@ else: content_alert_str = '' commands.add( repo.ui, repo, full_path ) + # Convert from unicode to prevent "TypeError: array item must be char" + full_path = full_path.encode('ascii', 'replace') try: commands.commit( repo.ui, repo, full_path, user=trans.user.username, message=commit_message ) except Exception, e: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket