Skip to content

Commit 00f7af0

Browse files
Fred Lefévère-LaoideFred Lefévère-Laoide
authored andcommitted
show warning when debugging
+ Fab's comment
1 parent e6357de commit 00f7af0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

taipy/gui/gui.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,14 +3063,16 @@ def _get_authorization(self, client_id: t.Optional[str] = None, system: t.Option
30633063
try:
30643064
return _Hooks()._get_authorization(self, client_id, system) or contextlib.nullcontext()
30653065
except Exception as e:
3066-
_warn("Hooks: _get_authorization", e)
3066+
_warn("Hooks._get_authorization()", e)
30673067
return contextlib.nullcontext()
30683068

30693069
def _is_exception_ignored(self, exception: Exception, source: t.Optional[str] = None) -> bool:
3070+
if is_debugging():
3071+
return False
30703072
try:
30713073
return _Hooks()._is_exception_ignored(self, exception, source) or False
30723074
except Exception as e:
3073-
_warn("Hooks: _is_exception_ignored", e)
3075+
_warn("Hooks._is_exception_ignored()", e)
30743076
return False
30753077

30763078
def set_favicon(self, favicon_path: t.Union[str, Path], state: t.Optional[State] = None):

0 commit comments

Comments
 (0)