def save_nzb(nzb_name, nzb_string):
 try:
  with ek(open, (nzb_name + '.nzb'), 'w') as nzb_fh:
   nzb_fh.write(nzb_string)
 except EnvironmentError as error:
  logger.log((u'Unable to save NZB: ' + ex(error)), logger.ERROR)

def save_nzb ( nzb_name , nzb_string ) : try : with ek ( open , ( nzb_name + '.nzb' ) , 'w' ) as nzb_fh : nzb_fh . write ( nzb_string ) except EnvironmentError as error : logger . log ( ( u'Unable to save NZB: ' + ex ( error ) ) , logger . ERROR )
save nzb to disk .