@@ -252,7 +252,7 @@ def set_path(dialog, result):
252
252
# also thrown when dialog has been cancelled
253
253
if error .code == 2 :
254
254
# error 2 seems to be 'dismiss' or 'cancel'
255
- if self .program [ "pre_script" ] in (None , "" ):
255
+ if self .program . get ( "pre_script" ) in (None , "" ):
256
256
self .action_pre_script .set_subtitle (
257
257
self .__default_pre_script_msg
258
258
)
@@ -282,7 +282,7 @@ def set_path(dialog, result):
282
282
# also thrown when dialog has been cancelled
283
283
if error .code == 2 :
284
284
# error 2 seems to be 'dismiss' or 'cancel'
285
- if self .program [ "post_script" ] in (None , "" ):
285
+ if self .program . get ( "post_script" ) in (None , "" ):
286
286
self .action_pre_script .set_subtitle (
287
287
self .__default_pre_script_msg
288
288
)
@@ -322,7 +322,7 @@ def set_path(dialog, result):
322
322
# also thrown when dialog has been cancelled
323
323
if error .code == 2 :
324
324
# error 2 seems to be 'dismiss' or 'cancel'
325
- if self .program [ "folder" ] in (None , "" ):
325
+ if self .program . get ( "folder" ) in (None , "" ):
326
326
self .action_cwd .set_subtitle (self .__default_cwd_msg )
327
327
else :
328
328
# something else happened...
0 commit comments