Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdbeeacc

Browse files
jdufresnegsnedders
authored andcommitted
Remove unnecessary/empty try/except construct
The exception is caught and always re-raised without any additionalaction. Simply let the original exception bubble up instead.
1 parent7fea68a commitdbeeacc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎html5lib/html5parser.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,7 @@ def log(function):
418418
defwrapped(self,*args,**kwargs):
419419
iffunction.__name__.startswith("process")andlen(args)>0:
420420
token=args[0]
421-
try:
422-
info= {"type":type_names[token['type']]}
423-
except:
424-
raise
421+
info= {"type":type_names[token['type']]}
425422
iftoken['type']intagTokenTypes:
426423
info["name"]=token['name']
427424

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp