Skip to content

Commit 85d6c2c

Browse files
tomkralidisnyalldawson
authored andcommittedFeb 28, 2022
make exception finer grained
1 parent 8b50f41 commit 85d6c2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/MetaSearch/search_backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class OARecSearch(SearchBase):
159159
def __init__(self, url, timeout, auth):
160160
try:
161161
from owslib.ogcapi.records import Records
162-
except Exception:
162+
except ModuleNotFoundError:
163163
# OWSLIB_OAREC_SUPPORTED already set to False
164164
pass
165165

0 commit comments

Comments
 (0)