Skip to content

Commit 365cea9

Browse files
committed
fix flake8 B042 error
unrelated to this PR, flake8 complains about "Exception class with `__init__` should pass all args to `super().__init__()` in order to work with `copy.copy()`"
1 parent 04df2cb commit 365cea9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/fontmake/errors.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class FontmakeError(Exception):
2121
"""
2222

2323
def __init__(self, msg, source_file):
24+
super().__init__(msg, source_file)
2425
self.msg = msg
2526
self.source_trail = [source_file]
2627

@@ -45,5 +46,5 @@ def __str__(self):
4546
class TTFAError(FontmakeError):
4647
def __init__(self, exitcode, source_file):
4748
self.exitcode = exitcode
48-
self.msg = f"ttfautohint failed with error code {str(self.exitcode)}"
49-
self.source_trail = [source_file]
49+
msg = f"ttfautohint failed with error code {str(exitcode)}"
50+
super().__init__(msg, source_file)

0 commit comments

Comments
 (0)