Skip to content

Commit be602bd

Browse files
committed
Fix error on empty nwjs version string.
1 parent 4578fff commit be602bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

command_line.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,10 @@ def get_app_nw_loc(self, temp_dir, output_dir):
919919
return app_file
920920

921921
def get_version_tuple(self):
922-
strs = re.findall('(\d+)\.(\d+)\.(\d+)', self.selected_version())[0]
922+
try:
923+
strs = re.findall('(\d+)\.(\d+)\.(\d+)', self.selected_version())[0]
924+
except IndexError:
925+
strs = ['0','0','0']
923926
return [int(s) for s in strs]
924927

925928
def copy_executable(self, export_path, dest_path,

0 commit comments

Comments
 (0)