Sickrage On Ubuntu 20.04 Restart Loop

I recently did a fresh install of Sickraage on the newly released Ubuntu 20.04 using the default Python 3.8. Things went reasonably well, until I added an Ubuntu “service” wrapper to auto start’ Sickrage. Sickrage would start correctly, but about every 2 to 3 minutes, it would “restart”. I looked into the journal logs for Sickrage and saw these errors:

Apr 27 02:21:30 U-SICKPOTATO-164 python3[3097]: /opt/sickrage/sickrage/subtitles/init.py:261: SyntaxWarning: “is” with a literal. Did you mean “==”?
Apr 27 02:21:30 U-SICKPOTATO-164 python3[3097]: /opt/sickrage/sickrage/subtitles/init.py:264: SyntaxWarning: “is” with a literal. Did you mean “==”?
Apr 27 02:21:30 U-SICKPOTATO-164 python3[3097]: /opt/sickrage/sickrage/subtitles/init.py:267: SyntaxWarning: “is” with a literal. Did you mean “==”?

These errors were perceived by the service handler as failures to start, and after a few moments, the service would “restart”.

I edited /opt/sickrage/sickrage/subtitles/init.py lines 261, 264, and 267 to reflect “==” opposed to “is” in the compare, and the issues went away. Sickrage has now been running on my Ubuntu system for around 20 hours without any issues.

My question is this; do this changes work in the eariler supported version of Python 3 ? Is there any hope of getting these changes into the source tree?

Additional info on my particular setup:
SR Version: 9.4.211
SR Install Type: GIT
SR GIT Commit: 69a053a04d0ab388fcff4901b3cf0450681f794f
SR Arguments: [’-q’, ‘–nolaunch’, ‘–datadir=/opt/sickrage’]
Locale: (‘en_US’, ‘UTF-8’)
Tornado Version: 6.0.4
Python Version: 3.8.2 (default, Mar 13 2020, 10:14:16) [GCC 9.3.0]

Thank you for your time and consideration.

I’ll install Python 3.8.2 and run some tests, thanks for pointing this out!

I’ve pushed the fix for this out to our develop branch, this will make its way to our production branch end of week, thanks!