diff --git a/setup.py b/setup.py index b6229934..578bae81 100755 --- a/setup.py +++ b/setup.py @@ -25,15 +25,15 @@ except Exception: # get commit from Ubuntu dpkg-parsechangelog match = re.search(r'\nVersion: (.*)~', dpkg) print('VERSION', match.group(0), match.group(1)) with open('lib/solaar/commit', 'w') as vfile: - vfile.write(f'{match.group[1]}\n') + vfile.write(f'{match.group(1)}\n') print('Version', subprocess.check_output(['dpkg-parsechangelog', '--show-field', 'Version']).strip().decode()) print('version', subprocess.check_output(['dpkg-parsechangelog', '--show-field', 'version']).strip().decode()) print('Version', subprocess.check_output(['dpkg-parsechangelog', '--show-field=Version']).strip().decode()) print('version', subprocess.check_output(['dpkg-parsechangelog', '--show-field=version']).strip().decode()) # with open('lib/solaar/commit', 'w') as vfile: # vfile.write(f'{commit]}\n') - except Exception: - pass + except Exception as e: + print('Exception using dpkg-parsechangelog', e) def _data_files():