OZtree icon indicating copy to clipboard operation
OZtree copied to clipboard

myconf.take('paypal.save_to_tmp_file_dir') should be wrapped with exception handling

Open lentinj opened this issue 1 year ago • 2 comments

If there's no paypal.save_to_tmp_file_dir then PP_process_post will fail currently. The myconf.take should be wrapped & provide a default.

A default in the example config will lessen the effect of this: https://github.com/OneZoom/OZtree/commit/db9bdff1bd1a8ef32e5f726cb475ba06c077e938

lentinj avatar Apr 23 '24 17:04 lentinj

Could we simply use myconf.get for this @lentinj ?

hyanwong avatar May 04 '24 21:05 hyanwong

If that works as we'd like now, don't see why not.

lentinj avatar May 07 '24 08:05 lentinj