Commit 7b88b02
committed
Better exception handling
You probably only want to rescue `ArgumentError` here, but certainly nothing more than the default `StandardError`. Rescuing `Exception` can lead to very strange behaviour.
See:
http://www.mikeperham.com/2012/03/03/the-perils-of-rescue-exception/
http://stackoverflow.com/a/10048406/18481 parent c8038ab commit 7b88b02
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments