diff --git a/CHANGELOG.md b/CHANGELOG.md index df45379..5609e66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# [2.2.18] - 2023-09-18 + +- Fix wrong error except + # [2.2.17] - 2023-09-18 - Fix peptides that are too long and their modifcations diff --git a/deeplc/feat_extractor.py b/deeplc/feat_extractor.py index 6a6cb93..509964b 100644 --- a/deeplc/feat_extractor.py +++ b/deeplc/feat_extractor.py @@ -462,7 +462,7 @@ def rolling_sum(a, n=2): for k, v in position_composition.items(): try: matrix[i, dict_index[k]] = v - except warning: + except IndexError: logger.warning(f"Could not add the following value: {v}") for p in positions_pos: diff --git a/setup.py b/setup.py index 48859d5..d4339ad 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='deeplc', - version='2.2.17', + version='2.2.18', license='apache-2.0', description='DeepLC: Retention time prediction for (modified) peptides using Deep Learning.', long_description=LONG_DESCRIPTION,