Skip to content

Commit 23cd622

Browse files
committed
error: rm unnecessary pass statements
1 parent 9cdd990 commit 23cd622

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/stagpy/error.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ class StagpyError(Exception):
2020
catch this exception.
2121
"""
2222

23-
pass
24-
2523

2624
class NoSnapshotError(StagpyError):
2725
"""Raised when no snapshot can be found.
@@ -86,8 +84,6 @@ def __init__(self, parfile: PathLike):
8684
class NotAvailableError(StagpyError):
8785
"""Raised when a feature is not available yet."""
8886

89-
pass
90-
9187

9288
class ParsingError(StagpyError):
9389
"""Raised when a parsing error occurs.
@@ -174,8 +170,6 @@ def __init__(self, zoom: float):
174170
class MissingDataError(StagpyError, KeyError):
175171
"""Raised when requested data is not present in output."""
176172

177-
pass
178-
179173

180174
class UnknownVarError(StagpyError, KeyError):
181175
"""Raised when invalid var is requested.
@@ -192,16 +186,10 @@ def __init__(self, varname: str):
192186
class UnknownFieldVarError(UnknownVarError):
193187
"""Raised when invalid field var is requested."""
194188

195-
pass
196-
197189

198190
class UnknownRprofVarError(UnknownVarError):
199191
"""Raised when invalid rprof var is requested."""
200192

201-
pass
202-
203193

204194
class UnknownTimeVarError(UnknownVarError):
205195
"""Raised when invalid time var is requested."""
206-
207-
pass

0 commit comments

Comments
 (0)