<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rniwa&#64;webkit.org" title="Ryosuke Niwa &lt;rniwa&#64;webkit.org&gt;"> <span class="fn">Ryosuke Niwa</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - add errors to run-benchmark exception handling."
   href="https://bugs.webkit.org/show_bug.cgi?id=145583">bug 145583</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #254128 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - add errors to run-benchmark exception handling."
   href="https://bugs.webkit.org/show_bug.cgi?id=145583#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - add errors to run-benchmark exception handling."
   href="https://bugs.webkit.org/show_bug.cgi?id=145583">bug 145583</a>
              from <span class="vcard"><a class="email" href="mailto:rniwa&#64;webkit.org" title="Ryosuke Niwa &lt;rniwa&#64;webkit.org&gt;"> <span class="fn">Ryosuke Niwa</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=254128&amp;action=diff" name="attach_254128" title="patch">attachment 254128</a> <a href="attachment.cgi?id=254128&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=254128&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=254128&amp;action=review</a>

<span class="quote">&gt; Tools/Scripts/run-benchmark:42
&gt; +    except Exception as e:</span >

Can we spell out either exception or error instead of e?

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/benchmark_builder/generic_benchmark_builder.py:36
&gt; +        except Exception as e:
&gt;              self.clean()
&gt; -            raise
&gt; +            raise e</span >

Apparently you don't need this in Python to forward the exception object.

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/benchmark_builder/generic_benchmark_builder.py:45
&gt; -            raise Exception('Cannot create the benchmark', errorCode)
&gt; +            raise Exception('Cannot create the benchmark - Error: %s' % errorCode, errorCode)</span >

Why are we also passing errorCode as the second argument??

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/benchmark_runner.py:42
&gt; +        except IOError as e:</span >

Ditto about spelling out error or exception.

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/benchmark_runner.py:84
&gt; +                result = json.loads(result)
&gt;                  results.append(result)</span >

We can probably just both of these in one line:
results.append(json.loads(result))

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/benchmark_runner.py:85
&gt; +            except Exception as e:</span >

Ditto about spelling out e.

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/generic_factory.py:23
&gt; -            except KeyError:
&gt; -                raise
&gt; +            except KeyError as e:
&gt; +                raise e</span >

Ditto about not needing this.

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/generic_factory.py:31
&gt; +        except Exception as e:
&gt; +            raise e</span >

Ditto.

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/utils.py:38
&gt; +    except Exception as e:
&gt; +        raise Exception(&quot;Invalid json format or empty json was found in %s - Error %s&quot; % (filePath, e))</span >

Spellout exception or error.

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/utils.py:44
&gt; +    except Exception as e:</span >

Ditto.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>