[Webkit-unassigned] [Bug 114506] [=?UTF-8?Q?=E1=BA=81ebkitpy?=] Executive.cpu_count() ignores $NUMBER_OF_PROCESSORS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Apr 14 23:57:26 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=114506
--- Comment #4 from Philippe Normand <pnormand at igalia.com> 2013-04-14 23:55:43 PST ---
(In reply to comment #3)
> Created an attachment (id=198023)
--> (https://bugs.webkit.org/attachment.cgi?id=198023&action=review) [details]
> Patch
>
> os.environ.get() returns None, but None has type NoneType and if you use it in int() it raises a TypeError exception instead of a ValueError. So, I've kept the if checking that the environment variable is defined and then I've added ValueError in the catch clause.
Well, it's possible to catch multiple exceptions with a single except or even multiple except statements :)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list