Skip to content

Commit

Permalink
[Version] v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Oct 7, 2019
1 parent 9e853ce commit 8a52a6c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
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).

## [1.2.1] - 2019-10-07
## Changed
- Improved matrix channel cancelling management

## [1.2.0] - 2019-10-05
## Added
- Evaluator types management
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OctoBot-Evaluators [1.2.0-beta](https://github.com/Drakkar-Software/OctoBot-Evaluators/blob/master/CHANGELOG.md)
# OctoBot-Evaluators [1.2.1-beta](https://github.com/Drakkar-Software/OctoBot-Evaluators/blob/master/CHANGELOG.md)
[![PyPI](https://img.shields.io/pypi/v/OctoBot-Evaluators.svg)](https://pypi.python.org/pypi/OctoBot-Evaluators/)
[![Build Status](https://travis-ci.com/Drakkar-Software/OctoBot-Evaluators.svg?branch=master)](https://travis-ci.org/Drakkar-Software/OctoBot-Evaluators)
[![Build status](https://ci.appveyor.com/api/projects/status/p68n2y6547xhw0t6?svg=true)](https://ci.appveyor.com/project/Herklos/octobot-evaluators)
Expand Down
2 changes: 1 addition & 1 deletion octobot_evaluators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# License along with this library.

PROJECT_NAME = "OctoBot-Evaluators"
VERSION = "1.2.0" # major.minor.revision
VERSION = "1.2.1" # major.minor.revision
3 changes: 3 additions & 0 deletions octobot_evaluators/channels/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library.
from asyncio import CancelledError

from octobot_channels import CHANNEL_WILDCARD
from octobot_channels.channels.channel import Channel
Expand All @@ -33,6 +34,8 @@ async def consume(self):
while not self.should_stop:
try:
await self.callback(**(await self.queue.get()))
except CancelledError:
self.logger.warning("Cancelled task")
except Exception as e:
self.logger.exception(f"Exception when calling callback : {e}")

Expand Down

0 comments on commit 8a52a6c

Please sign in to comment.