Skip to content

Commit

Permalink
[#23] changelog and version
Browse files Browse the repository at this point in the history
  • Loading branch information
zmumi committed May 4, 2024
1 parent 6315b64 commit f394e24
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2.0.0
-----

* Changed exception handling
* now exceptions are chained (before they were added in `args`)
* timeout errors are now chained (before they were not included at all)
* in case of dopiling, all callers are now notified about the error

1.2.1
-----

Expand Down
9 changes: 7 additions & 2 deletions examples/basic/_fix_case_to_be_removed.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@
))
async def test():
await sleep(1)
raise Exception("test")
raise ValueError("something went wrong")


async def main():
results = await gather(test(), test(), test(), test(), return_exceptions=True)
print(results)
for result in results:
print(result)
print(result.__cause__)

# see nice traceback in the console
await test()


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def prepare_description():

setup(
name='py-memoize',
version='1.2.1',
version='2.0.0',
author='Michal Zmuda',
author_email='[email protected]',
url='https://github.com/DreamLab/memoize',
Expand Down

0 comments on commit f394e24

Please sign in to comment.