Skip to content

Commit

Permalink
[Version] v1.3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Oct 7, 2019
1 parent 58c8736 commit 044c92c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
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.3.11] - 2019-10-07
### Added
- CancelledError catching in consume task

## [1.3.10] - 2019-10-05
### Added
- Producer is_running attribute
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# OctoBot-Channels [1.3.10](https://github.com/Drakkar-Software/OctoBot-Channels/blob/master/CHANGELOG.md)
# OctoBot-Channels [1.3.11](https://github.com/Drakkar-Software/OctoBot-Channels/blob/master/CHANGELOG.md)
[![PyPI](https://img.shields.io/pypi/v/OctoBot-Channels.svg)](https://pypi.python.org/pypi/OctoBot-Channels/)
[![Build Status](https://api.travis-ci.com/Drakkar-Software/OctoBot-Channels.svg?branch=master)](https://travis-ci.org/Drakkar-Software/OctoBot-Channels)
[![Build status](https://ci.appveyor.com/api/projects/status/erg9ebvtco73x5h4?svg=true)](https://ci.appveyor.com/project/Herklos/octobot-channels)
Expand Down
2 changes: 1 addition & 1 deletion octobot_channels/constants.py
Expand Up @@ -15,6 +15,6 @@
# License along with this library.

PROJECT_NAME = "OctoBot-Channels"
VERSION = "1.3.10" # major.minor.revision
VERSION = "1.3.11" # major.minor.revision

CHANNEL_WILDCARD = "*"
4 changes: 3 additions & 1 deletion octobot_channels/consumer.py
Expand Up @@ -14,7 +14,7 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library.
import asyncio
from asyncio import Queue
from asyncio import Queue, CancelledError

from octobot_commons.logging.logging_util import get_logger

Expand Down Expand Up @@ -57,6 +57,8 @@ async def consume(self):
while not self.should_stop:
try:
await self.perform(await self.queue.get())
except CancelledError:
self.logger.warning("Cancelled task")
except Exception as e:
self.logger.exception(f"Exception when calling callback : {e}")
finally:
Expand Down

0 comments on commit 044c92c

Please sign in to comment.