mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
cli: handle invalid version data
This commit is contained in:
parent
34a991ef7d
commit
f36135d163
1 changed files with 2 additions and 2 deletions
|
@ -219,8 +219,8 @@ def register(app):
|
|||
if instance_banned(instance.domain) or instance.domain == 'flipboard.com':
|
||||
continue
|
||||
nodeinfo_href = instance.nodeinfo_href
|
||||
if instance.software == 'lemmy' and instance.version >= '0.19.4' and instance.nodeinfo_href and instance.nodeinfo_href.endswith(
|
||||
'nodeinfo/2.0.json'):
|
||||
if instance.software == 'lemmy' and instance.version is not None and instance.version >= '0.19.4' and \
|
||||
instance.nodeinfo_href and instance.nodeinfo_href.endswith('nodeinfo/2.0.json'):
|
||||
nodeinfo_href = None
|
||||
|
||||
if not nodeinfo_href:
|
||||
|
|
Loading…
Add table
Reference in a new issue