From 07f16c11737b69f61603a708f53e066dbec133e4 Mon Sep 17 00:00:00 2001 From: Julie Moens Date: Thu, 5 Sep 2024 15:09:45 -0700 Subject: [PATCH] bump version and update public check --- CHANGELOG | 6 ++++++ tabpy/VERSION | 2 +- tabpy/tabpy_server/management/state.py | 8 +++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 529bdefe..681c8cec 100755 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,11 @@ # Changelog +## v2.12.0 + +### Improvements + +- Add support to optionally deploy functions that are public. + ## v2.11.0 ### Improvements diff --git a/tabpy/VERSION b/tabpy/VERSION index 46b81d81..d8b69897 100755 --- a/tabpy/VERSION +++ b/tabpy/VERSION @@ -1 +1 @@ -2.11.0 +2.12.0 diff --git a/tabpy/tabpy_server/management/state.py b/tabpy/tabpy_server/management/state.py index 9b7663a6..97536a05 100644 --- a/tabpy/tabpy_server/management/state.py +++ b/tabpy/tabpy_server/management/state.py @@ -188,12 +188,10 @@ def _check_and_set_dependencies(self, dependencies, defaultValue): return dependencies def _check_and_set_is_public(self, isPublic, defaultValue): - try: - isPublic - except: + if isPublic is None: return defaultValue - else: - return isPublic + + return isPublic @state_lock def add_endpoint(