Re: [PATCH] bin/pwclient: fix spurious except catch

2016-09-25 Thread Stephen Finucane
On 25 Sep 12:48, Yann E. MORIN wrote: > 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,

[PATCH] bin/pwclient: fix spurious except catch

2016-09-25 Thread Yann E. MORIN
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