[core] Fix platform linking warning

This commit is contained in:
derrod 2021-12-03 18:08:21 +01:00
parent e11dd8734f
commit 694a275dac

View file

@ -1358,7 +1358,7 @@ class LegendaryCore:
# check if the game requires linking to an external account first
partner_link = game.metadata.get('customAttributes', {}).get('partnerLinkType', {}).get('value', None)
if partner_link != 'ubisoft':
if partner_link and partner_link != 'ubisoft':
results.warnings.add(f'This game requires linking to "{partner_link}", '
f'this is currently unsupported and the game may not work.')