From b120205fdbe05cdcd3423d0c2c1e87e7232d6617 Mon Sep 17 00:00:00 2001 From: Hongxin <5400599+zhx828@users.noreply.github.com> Date: Sat, 5 Jun 2021 16:59:08 -0400 Subject: [PATCH 1/2] Check Class has the property before checking the value --- AnnotatorCore.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AnnotatorCore.py b/AnnotatorCore.py index 3ef0c99..69cff19 100644 --- a/AnnotatorCore.py +++ b/AnnotatorCore.py @@ -1460,11 +1460,11 @@ def pull_protein_change_info(queries, annotate_hotspot): geturl += 'hugoSymbol=' + query.gene.hugoSymbol geturl += '&alteration=' + query.alteration geturl += '&tumorType=' + query.tumorType - if query.consequence: + if hasattr(query, 'consequence') and query.consequence: geturl += '&consequence=' + query.consequence - if query.proteinStart and query.proteinStart != '\\N' and query.proteinStart != 'NULL' and query.proteinStart != '': + if hasattr(query, 'proteinStart') and query.proteinStart and query.proteinStart != '\\N' and query.proteinStart != 'NULL' and query.proteinStart != '': geturl += '&proteinStart=' + str(query.proteinStart) - if query.proteinEnd and query.proteinEnd != '\\N' and query.proteinEnd != 'NULL' and query.proteinEnd != '': + if hasattr(query, 'proteinEnd') and query.proteinEnd and query.proteinEnd != '\\N' and query.proteinEnd != 'NULL' and query.proteinEnd != '': geturl += '&proteinEnd=' + str(query.proteinEnd) getresponse = makeoncokbgetrequest(geturl) if getresponse.status_code == 200: From db893f748077ab53e30f4e873ddf80919c50790c Mon Sep 17 00:00:00 2001 From: Hongxin <5400599+zhx828@users.noreply.github.com> Date: Sat, 5 Jun 2021 17:03:02 -0400 Subject: [PATCH 2/2] Update project version level to patch --- .github/release-drafter.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 599660c..a8ff755 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,5 +1,5 @@ -name-template: 'v$NEXT_MAJOR_VERSION' -tag-template: 'v$NEXT_MAJOR_VERSION' +name-template: 'v$NEXT_PATCH_VERSION' +tag-template: 'v$NEXT_PATCH_VERSION' categories: - title: '🧬 Features' labels: @@ -31,4 +31,4 @@ template: | ## Changes $CHANGES ## 🕵️‍♀️ Full commit logs - - https://github.com/oncokb/oncokb-annotator/compare/$PREVIOUS_TAG...v$NEXT_MAJOR_VERSION + - https://github.com/oncokb/oncokb-annotator/compare/$PREVIOUS_TAG...v$NEXT_PATCH_VERSION