File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 77import os
88import re
99import threading
10+ from sys import exc_info
1011
1112if sublime .version () < '3000' :
1213 # we are on ST2 and Python 2.X
@@ -423,6 +424,13 @@ def cwl_parsing_handler(callback):
423424 )
424425 )
425426 continue
427+ except UnicodeDecodeError :
428+ print (
429+ u'{0}: {1}' .format (
430+ cwl_file , exc_info ()[1 ]
431+ )
432+ )
433+ continue
426434 else :
427435 if not os .path .isabs (cwl_file ) and cwl_file .startswith ('Package' ):
428436 cwl_file = os .path .normpath (
@@ -438,6 +446,13 @@ def cwl_parsing_handler(callback):
438446 )
439447 )
440448 continue
449+ except UnicodeDecodeError :
450+ print (
451+ u'{0}: {1}' .format (
452+ cwl_file , exc_info ()[1 ]
453+ )
454+ )
455+ continue
441456
442457 completions = parse_cwl_file (base_name , s )
443458 completion_results [base_name ] = completions
You can’t perform that action at this time.
0 commit comments