* Remove redundant backslash between brackets
* Fix multiple statements on one line
* Fix missing/excess whitespace
* Fix comments not starting with a single # and a space
* Convert tabs to spaces
* Use triple-quoted docstring
Seems to be a fix for:
Traceback (most recent call last):
File "/opt/sickrage/contrib/nzbToMedia/nzbToSickBeard.py", line 252, in <module>
result = nzbToMedia.main(sys.argv, section)
File "/opt/sickrage/contrib/nzbToMedia/nzbToMedia.py", line 712, in main
download_id='')
File "/opt/sickrage/contrib/nzbToMedia/nzbToMedia.py", line 611, in process
plex_update(inputCategory)
File "/opt/sickrage/contrib/nzbToMedia/core/nzbToMediaUtil.py", line 1063, in plex_update
url = url + core.PLEXHOST + ':' + core.PLEXPORT + '/library/sections/'
UnboundLocalError: local variable 'url' referenced before assignment
Exception TypeError: "'NoneType' object is not callable" in <bound method PosixProcess.__del__ of <core.nzbToMediaUtil.PosixProcess instance at 0x7f3d911098c0>> ignored
Also fixing remnants of this issue:
https://github.com/clinton-hall/nzbToMedia/issues/804