echel0n/SickRage — pull request #799 by tresni (2014-09-14 19:16:22+00:00)
Title: Fix for empty values in RSS Torrents

I had an custom RSS provider setup from before cookie support was introduced. Because of this SickRage could not restart as it would get an error trying to write the configuration line for the provider:

```
sickbeard_stderr.log:Exception in thread EVENT-QUEUE:
sickbeard_stderr.log-Traceback (most recent call last):
sickbeard_stderr.log- File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
sickbeard_stderr.log- self.run()
sickbeard_stderr.log- File "/opt/software/TPB/sickbeard/event_queue.py", line 31, in run
sickbeard_stderr.log- self.callback(type)
sickbeard_stderr.log- File "/opt/software/TPB/Sickbeard.py", line 482, in shutdown
sickbeard_stderr.log- sickbeard.saveAll()
sickbeard_stderr.log- File "/opt/software/TPB/sickbeard/__init__.py", line 1312, in saveAll
sickbeard_stderr.log- save_config()
sickbeard_stderr.log- File "/opt/software/TPB/sickbeard/__init__.py", line 1712, in save_config
sickbeard_stderr.log- new_config['TorrentRss']['torrentrss_data'] = '!!!'.join([x.configStr() for x in torrentRssProviderList])
sickbeard_stderr.log- File "/opt/software/TPB/sickbeard/providers/rsstorrent.py", line 66, in configStr
sickbeard_stderr.log- int(self.enable_daily)) + '|' + str(int(self.enable_backlog))
sickbeard_stderr.log-TypeError: cannot concatenate 'str' and 'NoneType' objects
sickbeard_stderr.log-
```

This pull request fixes that and makes formatting the string a little nicer to look at.