Exiting listin files logs exception
ArzelaAscoIi opened this issue · comments
Describe the bug
After typing "n" for listing files it raises an exception
![image](https://private-user-images.githubusercontent.com/37148029/238900915-fbe4d678-b5a7-400e-b56b-142921654421.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NzgzOTIsIm5iZiI6MTcyMzg3ODA5MiwicGF0aCI6Ii8zNzE0ODAyOS8yMzg5MDA5MTUtZmJlNGQ2NzgtYjVhNy00MDBlLWI1NmItMTQyOTIxNjU0NDIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA3MDEzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxZTUxOWE3ZTQxMDEzY2QwY2I3ZWFlMzljMTA2YmIyYmM0ZTlhODg4MThkNTJlMmQ2ODU3N2NhNzAxMzU0MWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OeFTuK2YNkmEG3zGx9YB111ueaoyRmzXxVE0-9RDnX8)
To Reproduce
Steps to reproduce the behavior:
- Call
python3 -m deepset_cloud_sdk.cli list-files
for a wokspace with files - Type "n"
- See exception
Expected behavior
No log line
Notes: this happens since the generator exits the context and does not close the loop properly with typer:
Here: (workflow)
here: CLI
Checklist
- I added a label for the level of urgency of this bug (see definitions here)
cc: @wochinge