From 4f2f569132180c61c0b35fa77d4003d6ed392edd Mon Sep 17 00:00:00 2001 From: Casper Guo Date: Sat, 2 Mar 2024 12:33:47 -0500 Subject: [PATCH] Remove unused InvalidSessionError --- docs/core.rst | 3 --- fastf1/core.py | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/docs/core.rst b/docs/core.rst index 46d59436d..20868eb1c 100644 --- a/docs/core.rst +++ b/docs/core.rst @@ -59,6 +59,3 @@ ********** .. autoclass:: fastf1.core.NoLapDataError - - - .. autoclass:: fastf1.core.InvalidSessionError \ No newline at end of file diff --git a/fastf1/core.py b/fastf1/core.py index 7fbdde49d..852c382f4 100644 --- a/fastf1/core.py +++ b/fastf1/core.py @@ -3696,13 +3696,3 @@ def __init__(self, *args): super(NoLapDataError, self).__init__("Failed to load session because " "the API did not provide any " "usable data.") - - -class InvalidSessionError(Exception): - """Raised if no session for the specified event name, type and year - can be found.""" - - def __init__(self, *args): - super(InvalidSessionError, self).__init__( - "No matching session can be found." - )