# Sidekiq email error: no implicit conversion of nil into String

**URL:** <https://meta.discourse.org/t/sidekiq-email-error-no-implicit-conversion-of-nil-into-string/40419>\
**Category:** Bug\
**Created:** [2 maart 2016 om 00:26 UTC](https://meta.discourse.org/t/sidekiq-email-error-no-implicit-conversion-of-nil-into-string/40419 "2016-03-02T00:26:30Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [28 april 2016 om 16:59 UTC](https://meta.discourse.org/t/sidekiq-email-error-no-implicit-conversion-of-nil-into-string/40419/20 "2016-04-28T16:59:03Z")

</div>

Even though I am unable to repro this issue locally or on a test instance (before/after rebuild), I just pushed a fix that will solve `no implicit conversion of nil into String` issue:

[https://github.com/discourse/discourse/commit/2a2b0d780346542d8a8389ab5cc09110269c7149](https://github.com/discourse/discourse/commit/2a2b0d780346542d8a8389ab5cc09110269c7149)

The above fix will prevent raising exception and will ensure that digest email is sent even if `@anchor_color` is `nil`. Anchor color will fallback to [default color](https://github.com/discourse/discourse/blob/master/lib/email/styles.rb#L143) (`006699`).

This is not a definitive fix, as I am not sure why Sidekiq is not loading `@anchor_color`’s value in some cases.

---

_[View the full topic](https://meta.discourse.org/t/sidekiq-email-error-no-implicit-conversion-of-nil-into-string/40419)._
