Chromium Code Reviews
Descriptionbindings: Stop using strings directly when throwing exceptions
Replace occurrences of "raise 'foo bar'" with "raise ValueError('foo bar')",
otherwise we get another exception ourselves:
TypeError: exceptions must be old-style classes or derived from BaseException, not str
R=bashi@chromium.org,haraken@chromium.org,yukishiino@chromium.org
Review-Url: https://codereview.chromium.org/2751063004
Cr-Commit-Position: refs/heads/master@{#457401}
Committed: https://chromium.googlesource.com/chromium/src/+/f35532b8b4f9c1be7dde2a464071b4730122e3a6
Patch Set 1 #
Messages
Total messages: 13 (7 generated)
|
||||||||||||||||||||||||||||