def saveNZB(nzbName, nzbString):
 try:
  with io.open((nzbName + u'.nzb'), u'w') as nzb_fh:
   nzb_fh.write(nzbString)
 except EnvironmentError as e:
  sickrage.srCore.srLogger.error(u'Unable to save NZB: {}'.format(e.message))

def saveNZB ( nzbName , nzbString ) : try : with io . open ( ( nzbName + u'.nzb' ) , u'w' ) as nzb_fh : nzb_fh . write ( nzbString ) except EnvironmentError as e : sickrage . srCore . srLogger . error ( u'Unable to save NZB: {}' . format ( e . message ) )
save nzb to disk .