commit/galaxy-central: natefoo: Properly handle error conditions in library_common.upload_dataset when uploading via the API.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/832538ba7258/ changeset: 832538ba7258 user: natefoo date: 2011-08-29 16:57:08 summary: Properly handle error conditions in library_common.upload_dataset when uploading via the API. affected #: 1 file (152 bytes) --- a/lib/galaxy/web/controllers/library_common.py Mon Aug 29 09:32:26 2011 -0400 +++ b/lib/galaxy/web/controllers/library_common.py Mon Aug 29 10:57:08 2011 -0400 @@ -852,6 +852,8 @@ # created_outputs_dict can be a string only if cntrller == 'api' if type( created_outputs_dict ) == str: return 400, created_outputs_dict + elif type( created_outputs_dict ) == tuple: + return created_outputs_dict[0], created_outputs_dict[1] return 200, created_outputs_dict total_added = len( created_outputs_dict.keys() ) ldda_id_list = [ str( v.id ) for k, v in created_outputs_dict.items() ] 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