Skip to content

Commit

Permalink
Merge pull request #110 from jedie/patch-1
Browse files Browse the repository at this point in the history
Fix: "IndexError: tuple index out of range"
  • Loading branch information
freakboy3742 authored Mar 17, 2018
2 parents 6ab9914 + 973e397 commit 1affed1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions briefcase/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def version(self):
if len(parts) == 0:
return '1.0.0'
elif len(parts) == 1:
return '{}.0.0'.format(tuple(parts))
return '{}.0.0'.format(*parts)
elif len(parts) == 2:
return '{}.{}.0'.format(tuple(parts))
return '{}.{}.0'.format(*parts)
else:
return '{}.{}.{}'.format(tuple(parts[:3]))
return '{}.{}.{}'.format(*parts[:3])

def install_icon(self):
raise RuntimeError("Django doesn't support icons.")
Expand Down

0 comments on commit 1affed1

Please sign in to comment.