We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa48ac6 commit f0eb333Copy full SHA for f0eb333
HISTORY.md
@@ -1,3 +1,7 @@
1
+## 1.5.2 (2010-03-03)
2
+
3
+* Bugfix: JSON check was crazy.
4
5
## 1.5.1 (2010-03-03)
6
7
* `Job.destroy` and `Resque.dequeue` return the # of destroyed jobs.
lib/resque/helpers.rb
@@ -21,12 +21,14 @@ def decode(object)
21
return unless object
22
23
if defined? Yajl
24
- Yajl::Parser.parse(object, :check_utf8 => false)
+ begin
25
+ Yajl::Parser.parse(object, :check_utf8 => false)
26
+ rescue Yajl::ParseError
27
+ end
28
else
29
begin
30
JSON.parse(object)
31
rescue JSON::ParserError
- logger.error "#{$!}"
32
end
33
34
0 commit comments