Skip to content

Commit 2b71532

Browse files
committed
improved simple snack suggestion
1 parent c5e46d0 commit 2b71532

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

learning/snack_suggestions.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import logging
66
import sys
7-
from typing import Optional
87

98
logger = logging.getLogger(__name__)
109

@@ -79,11 +78,11 @@ def main() -> None:
7978
user_input = get_user_input()
8079
process_snack_request(user_input)
8180

82-
except InvalidInputError as e:
83-
logger.exception("Invalid input: %s", e)
81+
except InvalidInputError:
82+
logger.exception("Invalid input")
8483
sys.exit(1)
85-
except Exception as e:
86-
logger.exception("Unexpected error: %s", e)
84+
except Exception:
85+
logger.exception("Unexpected error")
8786
sys.exit(1)
8887

8988

0 commit comments

Comments
 (0)