Skip to content

Commit 0aa58bc

Browse files
committed
fixed mistake for upating function with new public option
1 parent e69015b commit 0aa58bc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tabpy/tabpy_server/management/state.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ def _check_and_set_dependencies(self, dependencies, defaultValue):
188188
return dependencies
189189

190190
def _check_and_set_is_public(self, isPublic, defaultValue):
191-
if not isPublic:
191+
try:
192+
isPublic
193+
except:
192194
return defaultValue
193-
194-
return isPublic
195+
else:
196+
return isPublic
195197

196198
@state_lock
197199
def add_endpoint(

0 commit comments

Comments
 (0)