Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: pengzhile <[email protected]>
  • Loading branch information
pengzhile committed Feb 17, 2023
1 parent aa46418 commit 0cd8658
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3
0.0.4
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
entry_points={
"console_scripts": [
"pandora = pandora.__main__:main",
"pandora = pandora.__main__:run",
]
}
)
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = '0.0.3'
__version__ = '0.0.4'
6 changes: 5 additions & 1 deletion src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ def main():
ChatBot(ChatGPT(access_token, args.proxy)).run()


if __name__ == '__main__':
def run():
try:
main()
except KeyboardInterrupt:
Console.info('\n\nBye...')
sys.exit(0)
except Exception as e:
Console.error_bh('### Error occurred: ' + str(e))


if __name__ == '__main__':
run()

0 comments on commit 0cd8658

Please sign in to comment.