mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2025-03-02 20:09:22 -05:00
catch exception in IpMap.find
This commit is contained in:
parent
e6fd4e8646
commit
1ad5644553
@ -8,6 +8,7 @@ module IpMap = struct
|
||||
let find x map =
|
||||
try Some (find x map)
|
||||
with Not_found -> None
|
||||
| e -> Logs.err( fun f -> f "uncaught exception in find...%!"); None
|
||||
end
|
||||
|
||||
(** An Ethernet interface. *)
|
||||
|
Loading…
x
Reference in New Issue
Block a user