I think I was confused about Python syntax there

2019-08-17
Marnanel Thurman 2019-08-12 23:53:08 +01:00
rodzic bc564656b2
commit a1c7796b27
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -70,7 +70,7 @@ def create(
logger.debug('Class for %s is %s', value['type'], cls)
del value['type']
if 'url' and 'remote_url' in value:
if 'url' in value and 'remote_url' in value:
if value['url']!=value['remote_url']:
logger.warn('url and remote_url differ (%s vs %s)',
value['url'], value['remote_url'])