Skip to content

Commit 4eec697

Browse files
committed
Fix crash on quit
1 parent 741b428 commit 4eec697

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: test upload
22

33
test:
4-
rm -rf testenv/ ; python3 -m venv testenv ; source testenv/bin/activate.csh ; pip install -e . ; rehash ; gptline
4+
rm -rf testenv/ ; python3 -m venv testenv ; source testenv/bin/activate.csh ; pip install -e . ; testenv/bin/gptline
55

66
upload:
77
rm -f dist/*

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="gptline",
8-
version="1.0.1",
8+
version="1.0.2",
99
packages=["src"],
1010
install_requires=requirements,
1111
entry_points={

src/main.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
print("Set the environment variable OPENAI_KEY to your api secret key")
2020
exit(1)
2121

22-
def chat_loop():
22+
def main():
2323
tasks = []
2424
chat_db = ChatDB()
2525
current_chat_id = None
@@ -158,4 +158,3 @@ def new_chat():
158158
chat_db.set_chat_name(chat_id, name)
159159
tasks = [task for task in tasks if not task.done()]
160160

161-
chat_loop()

0 commit comments

Comments
 (0)