Skip to content

Commit cd47c99

Browse files
committed
bugfix in default vendor for code generation template
1 parent fd8e27e commit cd47c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcapkit/vendor/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _missing_(cls, value: 'int') -> '{NAME}':
8787
if not ({FLAG}):
8888
raise ValueError('%r is not a valid %s' % (value, cls.__name__))
8989
{MISS}
90-
{'' if ''.join(MISS.splitlines()[-1:]).startswith('return') else 'return super()._missing_(value)'}
90+
{'' if ''.join(MISS.splitlines()[-1:]).strip().startswith('return') else 'return super()._missing_(value)'}
9191
'''.strip() # type: Callable[[str, str, str, str, str, str], str]
9292

9393

0 commit comments

Comments
 (0)