Skip to content

Commit 635e7c1

Browse files
committed
Fixes
1 parent b382f40 commit 635e7c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pygpt_net/core/controller/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def is_allowed_for_mode(self, mode, check_assistant=True):
9999
:return: bool
100100
"""
101101
ctx = self.window.config.get('ctx')
102+
102103
if ctx is None or ctx == '':
103104
return True
104105
ctx_data = self.window.gpt.context.get_context_by_name(ctx)

0 commit comments

Comments
 (0)