]> git.ipfire.org Git - thirdparty/patchwork.git/commit
bin/pwclient: fix spurious except catch
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 25 Sep 2016 10:48:32 +0000 (12:48 +0200)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sun, 25 Sep 2016 15:19:23 +0000 (16:19 +0100)
commit3f303f1edcd5afeb922ba0bb756ea64c0371873f
treecdc72d78be72c894390370474320f4e962a8b39e
parent2a915efdf95a691577738418ef31ed3f2b6383ca
bin/pwclient: fix spurious except catch

The 'with' statement does not start an exception block like 'try' would,
so we get an error executing pwclient:

      File "/home/ymorin/bin/pwclient", line 300
        except IOError:
             ^
    SyntaxError: invalid syntax

Instead, don't try to catch any exception: any failure will be
propagated back up the stack and eventually cause an abort, which is
anyway what the except clause was trying to do.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Stephen Finucane <stephenfinucane@hotmail.com>
Reviewed-by: Stephen Finucane <stephenfinucane@hotmail.com>
patchwork/bin/pwclient