From 9435ee84628831dd7a71ca0732670a10290e6da8 Mon Sep 17 00:00:00 2001 From: Vineet Bansal Date: Fri, 19 Aug 2022 10:55:01 -0400 Subject: [PATCH] Bug fix with the error() function propagating error messages to the caller (introduced in 1.0) --- pyproject.toml | 2 +- src/hatchet/__init__.py | 2 +- src/hatchet/utils/Supporting.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 05397636..06324d4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "hatchet" -version = "1.0.2" +version = "1.0.3" authors = [ { name="Simone Zaccaria", email="s.zaccaria@ucl.ac.uk" }, { name="Ben Raphael", email="braphael@cs.princeton.edu" }, diff --git a/src/hatchet/__init__.py b/src/hatchet/__init__.py index 75703b65..c8fc7edb 100644 --- a/src/hatchet/__init__.py +++ b/src/hatchet/__init__.py @@ -1,4 +1,4 @@ -__version__ = '1.0.2' +__version__ = '1.0.3' import os.path from importlib.resources import path diff --git a/src/hatchet/utils/Supporting.py b/src/hatchet/utils/Supporting.py index 4362749a..da0790e2 100644 --- a/src/hatchet/utils/Supporting.py +++ b/src/hatchet/utils/Supporting.py @@ -122,6 +122,8 @@ def log( if level == 'ERROR' and raise_exception: raise exception_class(msg) + else: + return formatted_msg def logArgs(args, width=40):