File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -195,19 +195,13 @@ def get_data(self, file_name):
195195 raise exceptions .IncorrectDataInput
196196 utils .merge (data , self .__cached_environ_variables )
197197 return data
198- except IOError as exception :
198+ except ( IOError , exceptions . IncorrectDataInput ) as exception :
199199 # If data file doesn't exist:
200200 # 1. Alert the user of their (potential) mistake
201201 # 2. Attempt to use environment vars as data
202202 reporter .report_warning_message (str (exception ))
203203 reporter .report_using_env_vars ()
204204 return self .__cached_environ_variables
205- except exceptions .IncorrectDataInput as exception2 :
206- # If data file is not in the right format
207- # do the same as above
208- reporter .report_warning_message (str (exception2 ))
209- reporter .report_using_env_vars ()
210- return self .__cached_environ_variables
211205
212206
213207def make_sure_all_pkg_are_loaded ():
You can’t perform that action at this time.
0 commit comments