Skip to content

Commit

Permalink
changed is not None to != ''
Browse files Browse the repository at this point in the history
  • Loading branch information
zibiax committed May 6, 2024
1 parent 7e09c7a commit 1f35088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_draftgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def draft_gpt(user_input, openai_api_key=os.environ["OPENAI_API_KEY"], gpt_model
incident_desc = response.text
else:
print("Failed to fetch file:", response.status_code)
elif input_logfile is not None:
elif input_logfile != '':
with open(input_logfile, "r") as file:
incident_desc = file.read().strip()
else:
Expand Down

0 comments on commit 1f35088

Please sign in to comment.