add compatibility reexport for codeformers

This commit is contained in:
Vladimir Mandic
2023-10-18 13:01:26 -04:00
parent 231ca1ac7e
commit 079f5c9f2a
5 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -182,7 +182,8 @@ class Api:
if shared.opts.motd:
res = requests.get('https://vladmandic.github.io/automatic/motd', timeout=10)
if res.status_code == 200:
shared.log.info(f'MOTD: {res.text}')
msg = (res.text or '').strip()
shared.log.info(f'MOTD: {msg if len(msg) > 0 else "N/A"}')
motd += res.text
return motd