Skip to content

Commit

Permalink
If no license is passed there is an error #42 (#43)
Browse files Browse the repository at this point in the history
* If no license is passed there is an error #42
  • Loading branch information
Dickriven Chellemboyee authored and Mte90 committed Oct 10, 2019
1 parent 1d52775 commit 691b2fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ghlicense/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,10 @@ def main():
update_license("https://joinup.ec.europa.eu/sites/default/files/inline-files/EUPL%20v1_2%20EN(1).txt", chosen_license,
'(https://img.shields.io/badge/License-EUPL%20v1.1-blue.svg)](https://joinup.ec.europa.eu/page/eupl-guidelines-faq-infographics)')
else:
print('License {license} not found!'.format(license=chosen_license))
if type(chosen_license) is bool:
print('No license provided')
else:
print('License {license} not found!'.format(license=chosen_license))
sys.exit(1)

# Save the three most recently used licenses (remove duplicates, keep order)
Expand Down

0 comments on commit 691b2fa

Please sign in to comment.