Skip to content

Commit

Permalink
[Work-Around] Remove Extra Error Class in MADXParser
Browse files Browse the repository at this point in the history
Sorting issue in pybind11-stubgen can be resolved by:
- moving the base class into a separate file/import
- renaming the base class to something alphabetically earlier
- removing the base class.

Since the class that shows the issue is somewhat unnecessary, we
remove it.
  • Loading branch information
ax3l committed Jan 30, 2025
1 parent e2e9286 commit 567d692
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/python/impactx/MADXParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
import warnings


class MADXParserError(Exception):
pass


class MADXInputError(MADXParserError):
class MADXInputError(Exception):
def __init__(self, args, with_traceback):
self.args = args
self.with_traceback = with_traceback
Expand Down

0 comments on commit 567d692

Please sign in to comment.