wooga/eredis — pull request #32 by jeremyong (2012-11-29 01:08:54+00:00)
Title: Catch exception to make commands more robust

### Issue

Currently, the client will crash if the user attempts to issue a query with a proplist or any unconventional list. This is because the client assumes in `eredis:to_binary/1` that all lists are strings.

### Example:

```erlang
eredis:q(Client, ["SET", foo, [{a, b}, {c, d}]])
Exception: bad argument
```

### Resolution

If the list cannot be converted to binary cleanly, the client should fallback to `term_to_binary/1` as advertised in a catch block.