Page 2 of 2

Re: e-mail template creates weird error-report

Posted: March 9th, 2011, 6:14 pm
by shypike
Thank you.

Re: e-mail template creates weird error-report

Posted: March 14th, 2011, 5:12 pm
by ReinholD
Hmm.. I have a problem..

I noticed the tv e-mails stopped working the other day.. I checked the folders, and discovered that the emailer.pyc had been re-added. It seems like it is re-added every time SAB is restarted.. I can fix this temporarily, by just not restarting SAB..

But is there another fix?

Re: e-mail template creates weird error-report

Posted: March 14th, 2011, 5:25 pm
by shypike
It's normal that Python re-creates the PYC files, that's just the byte code file.
Do you claim that the *old* PYC file comes back?
Isn't the patched PY file somehow overwritten?

Re: e-mail template creates weird error-report

Posted: March 14th, 2011, 6:22 pm
by ReinholD
shypike wrote: It's normal that Python re-creates the PYC files, that's just the byte code file.
Do you claim that the *old* PYC file comes back?
Isn't the patched PY file somehow overwritten?
Well, I've figured it out, but it raises more questions that it answers.

the patched PY haven't been overwritten.

I ran the following test:

I tested, by manually downloading a random small nzb from nzbmatrix, and editting the category to tv.
- I received an e-mail.

I restarted SAB, and checked that both the patched PY and the PYC files were there.
- They were, everything fine.

I instructed SickBeard to snatch a random tv epsiode I was missing.
- It downloaded fine, but I didn't receive an e-mail.

I immediately did the same as in the beginning: downloaded a random file and setting the category to tv.
- again I DID receive an e-mail.


Obviously the problem only occurs when the nzb is added by SickBeard, which also explained why it worked fine in the beginning. Back then, I was testing with manual downloads.
But I don't see any difference between "my" nzbs and SickBeard's nzbs. both are categorised as "tv", and both are running the same post-processing afterwards (sabToSickBeard.py).

I know for a fact, that SickBeard nzbs was doing e-mails fine, before i started this multiple email thing..

I've attached the log-file, if it helps. I've removed all the "cache removed" lines..