File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,15 @@ class JavascriptException(Exception):
26
26
def check_js_threshold_version (working_alias ):
27
27
# type: (str) -> bool
28
28
""" parse node version: 'v4.2.6\n ' -> ['4', '2', '6'],
29
- https://github.com/nodejs/node/blob/master/CHANGELOG.md#nodejs-changelog """
30
-
31
- v1 , v2 , v3 = [int (v ) for v in subprocess .check_output (
32
- [working_alias , "-v" ]).decode ('ascii' ).strip ().strip ('v' ).split ('.' )]
29
+ https://github.com/nodejs/node/blob/master/CHANGELOG.md#nodejs-changelog"""
30
+
31
+ try :
32
+ v1 , v2 , v3 = [int (v ) for v in subprocess .check_output (
33
+ [working_alias , "-v" ]).decode ('ascii' ).strip ().strip ('v' ).split ('.' )]
34
+ except Exception as e :
35
+ _logger .debug (str (e ))
36
+ _logger .debug ("Calling subprocess failed" )
37
+ return True
33
38
34
39
if v1 == 0 :
35
40
if v2 == 10 and v3 <= 25 or v2 < 10 :
You can’t perform that action at this time.
0 commit comments