Skip to content

Commit

Permalink
Fix error on empty nwjs version string.
Browse files Browse the repository at this point in the history
  • Loading branch information
jyapayne committed Apr 18, 2016
1 parent 4578fff commit be602bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,10 @@ def get_app_nw_loc(self, temp_dir, output_dir):
return app_file

def get_version_tuple(self):
strs = re.findall('(\d+)\.(\d+)\.(\d+)', self.selected_version())[0]
try:
strs = re.findall('(\d+)\.(\d+)\.(\d+)', self.selected_version())[0]
except IndexError:
strs = ['0','0','0']
return [int(s) for s in strs]

def copy_executable(self, export_path, dest_path,
Expand Down

0 comments on commit be602bd

Please sign in to comment.