Skip to content
Permalink
Browse files
Match Python catching all exceptions
  • Loading branch information
davisp committed Feb 25, 2019
1 parent f7663ce commit cc6cf828384ec01f31fe0fa003c280e8562ccaba
Showing 1 changed file with 1 addition and 1 deletion.
@@ -750,7 +750,7 @@ execute(TxObj, #st{is_directory_op = true} = St, Op) ->
Dir = lists:nth(DirIdx + 1, DirList),
try
execute_dir(TxObj, St, Dir, Op)
catch error:{erlfdb_directory, _} = _R ->
catch _T:_R ->
NewSt = case lists:member(Op, ?DIRECTORY_CREATE_OPS) of
true -> append_dir(St, null);
false -> St

0 comments on commit cc6cf82

Please sign in to comment.