lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 13 Apr 2020 07:02:20 +0200
From:   Ezra Buehler <>
To:     Jarkko Sakkinen <>
Cc:     Shuah Khan <>,,,
        Tadeusz Struk <>,
        open list <>
Subject: Re: [PATCH] selftests/tpm2: Change exception handling to be Python 3

Hi Jarkko,

On 12 Apr 2020, at 19:07, Jarkko Sakkinen <> wrote:
> On Sun, Apr 12, 2020 at 05:02:27PM +0200, Ezra Buehler wrote:
>> Hi Jarkkon,
>>> On 12 Apr 2020, at 16:36, Jarkko Sakkinen <> wrote:
>>> +        except ProtocolError(e):
>> Should this not be
>>        except ProtocolError as e:
> Unless there is a functional difference, does it matter?
> /Jarkko

Well, your patch confuses me a lot. It looks to me like you are passing
the undefined `e` variable to the constructor.

When I run flake8 on it I get following error (among others):

    F821 undefined name 'e'

What I suggested is the standard syntax:

Did you test this? You should get an error as soon as an exception


Powered by blists - more mailing lists