File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,13 @@ def run_tool(args):
7777
7878 # TODO don't know if all tokens are 39 chars long. Please open new issue if your token has different length.
7979 # 40 char len test is for extra '\n' added by vim. Extra new line is removed in next if statement.
80- if gemini_token is None or ( 39 <= len (gemini_token ) <= 40 ) :
80+ if gemini_token is None or len ( gemini_token ) < 39 or len (gemini_token ) > 40 :
8181 print (f"Gemini token found in { token_location } could not be read, or is not formatted properly." )
8282 if args .debug :
8383 print (f"DEBUG: gemini_token: { gemini_token } " )
8484 print (f"DEBUG: len(gemini_token): { len (gemini_token )} " )
8585 print (f"DEBUG: gemini_token is None: { gemini_token is None } " )
86- print (f"DEBUG: (39 <= len(gemini_token) <= 40) : { ( 39 <= len (gemini_token ) <= 40 ) } " )
86+ print (f"DEBUG: len(gemini_token) < 39 or len(gemini_token) > 40: { len ( gemini_token ) < 39 or len (gemini_token ) > 40 } " )
8787 sys .exit (2 )
8888
8989 if '\n ' in gemini_token :
You can’t perform that action at this time.
0 commit comments