commit/galaxy-central: dannon: Pep8 api/datasets.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/89daa32d57d1/ Changeset: 89daa32d57d1 User: dannon Date: 2015-01-22 21:34:19+00:00 Summary: Pep8 api/datasets. Affected #: 1 file diff -r 42ca1929bcb2f6717dc299e656d1101f06569bda -r 89daa32d57d16834ce02d78b3dec4072351007d3 lib/galaxy/webapps/galaxy/api/datasets.py --- a/lib/galaxy/webapps/galaxy/api/datasets.py +++ b/lib/galaxy/webapps/galaxy/api/datasets.py @@ -43,7 +43,7 @@ # Get dataset. try: dataset = self.get_hda_or_ldda( trans, hda_ldda=hda_ldda, dataset_id=id ) - except Exception, e: + except Exception as e: return str( e ) # Use data type to return particular type of data. @@ -70,7 +70,7 @@ else: rval = dataset.to_dict() - except Exception, e: + except Exception as e: rval = "Error in dataset API at listing contents: " + str( e ) log.error( rval + ": %s" % str(e), exc_info=True ) trans.response.status = 500 @@ -296,7 +296,7 @@ del display_kwd["key"] rval = hda.datatype.display_data( trans, hda, preview, filename, to_ext, chunk, **display_kwd ) - except Exception, exception: + except Exception as exception: log.error( "Error getting display data for dataset (%s) from history (%s): %s", history_content_id, history_id, str( exception ), exc_info=True ) trans.response.status = 500 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)
-
commits-noreply@bitbucket.org