bastichelaar/salt — comment on commit 5b5d7dcd125296c0175292af5df4b6b3ed456097
File: salt/modules/publish.py line 48
By bastichelaar:

Well, ast.literal_eval(string) complains of malformed string. Will catch it
with a ValueError.

2012/1/11 Jeff Schroeder <
reply@reply.github.com
>

> Using ```ast.literal_eval()```, you likely don't even need the try/except
> blocks. Either way, please don't use ```except:``` as it might catch
> exceptions we don't want to catch here. Find the specific exception being
> raised and catch it explicitly.
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/bastichelaar/salt/commit/5b5d7dcd125296c0175292af5df4b6b3ed456097#commitcomment-857796
>