[PR #62] [MERGED] Proper handling of listing rounds, sprints or running main #109

Closed
opened 2026-05-07 00:18:42 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/62
Author: @111110100
Created: 12/17/2025
Status: Merged
Merged: 12/17/2025
Merged by: @IAmTomShaw

Base: mainHead: proper01


📝 Commits (2)

  • 48dbf89 Removed sys.exit()
  • 22ed8cd Indented main function instead of adding a hack of sys.exit()

📊 Changes

2 files changed (+7 additions, -8 deletions)

View changed files

📝 main.py (+6 -5)
📝 src/f1_data.py (+1 -3)

📄 Description

The original had a sys.exit() on list_rounds() and list_sprints(). The proper Pythonic way is to just logically handle it from main.py.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/62 **Author:** [@111110100](https://github.com/111110100) **Created:** 12/17/2025 **Status:** ✅ Merged **Merged:** 12/17/2025 **Merged by:** [@IAmTomShaw](https://github.com/IAmTomShaw) **Base:** `main` ← **Head:** `proper01` --- ### 📝 Commits (2) - [`48dbf89`](https://github.com/IAmTomShaw/f1-race-replay/commit/48dbf89d39cdee59a04baac19f5cde410fc1be9b) Removed sys.exit() - [`22ed8cd`](https://github.com/IAmTomShaw/f1-race-replay/commit/22ed8cda4473812155cbecb4e8b107a81183216a) Indented main function instead of adding a hack of sys.exit() ### 📊 Changes **2 files changed** (+7 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `main.py` (+6 -5) 📝 `src/f1_data.py` (+1 -3) </details> ### 📄 Description The original had a sys.exit() on list_rounds() and list_sprints(). The proper Pythonic way is to just logically handle it from main.py. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:18:42 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#109
No description provided.