Merge pull request #128 from classabbyamp/qrz-incomplete-fix

qrz: handle addresses that are only whitespace
This commit is contained in:
Abigail Gold 2019-12-23 15:45:28 -05:00 committed by GitHub
commit f0805d2095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ def qrz_process_info(data: dict):
state = ''
address = data.get('addr1', '') + '\n' + data.get('addr2', '') + \
state + ' ' + data.get('zip', '')
address = address.strip()
if address == '':
address = None
if 'eqsl' in data:
eqsl = 'Yes' if data['eqsl'] == 1 else 'No'
else: