mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
allow catch all exceptions (#11498)
This commit is contained in:
parent
a67994316a
commit
69aaf03345
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ RCT_EXPORT_METHOD(loadModel
|
|||
@try {
|
||||
NSDictionary *resultMap = [self loadModel:modelPath options:options];
|
||||
resolve(resultMap);
|
||||
} @catch (NSException *exception) {
|
||||
} @catch (...) {
|
||||
reject(@"onnxruntime", @"can't load model", nil);
|
||||
}
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ RCT_EXPORT_METHOD(run
|
|||
@try {
|
||||
NSDictionary *resultMap = [self run:url input:input output:output options:options];
|
||||
resolve(resultMap);
|
||||
} @catch (NSException *exception) {
|
||||
} @catch (...) {
|
||||
reject(@"onnxruntime", @"can't run model", nil);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue