Skip to content

Commit

Permalink
Version 1.4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Sep 21, 2021
1 parent eb833a4 commit 90ebcfc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Latest changes

## 1.4.0.1

Remove `logger.exception` in favour of `logger.error`

## 1.4.0.0

### Breaking: better error handling
Expand Down
3 changes: 2 additions & 1 deletion bitcart/event_delivery.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio
import traceback
from json import JSONDecodeError
from typing import TYPE_CHECKING, Callable, Dict, Iterable, Optional, Union
from urllib.parse import urljoin
Expand Down Expand Up @@ -104,7 +105,7 @@ async def poll_updates(self, timeout: Union[int, float] = 1) -> None: # pragma:
try:
data = await self.server.get_updates()
except Exception:
logger.exception("Error occured during event polling:")
logger.error(f"Error occured during event polling:\n{traceback.format_exc()}")
await asyncio.sleep(timeout)
continue
await self.process_updates(data)
Expand Down
3 changes: 2 additions & 1 deletion bitcart/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import inspect
import json
import traceback
from decimal import Decimal
from typing import Any, Callable

Expand Down Expand Up @@ -80,4 +81,4 @@ async def call_universal(func: Callable, *args: Any, **kwargs: Any) -> Any:
result = await result
return result
except Exception:
logger.exception("Error occured:")
logger.error(f"Error occured:\n{traceback.format_exc()}")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def main() -> None:
setup(
name="bitcart",
packages=find_packages(),
version="1.4.0.0",
version="1.4.0.1",
license="LGPLv3+",
description="BitcartCC coins support library",
long_description=open("README.md").read(),
Expand Down

0 comments on commit 90ebcfc

Please sign in to comment.