mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Handle OSError when attempting connection (#339)
This commit is contained in:
parent
bb781aaed5
commit
2c5ceeabdb
@ -1078,6 +1078,10 @@ class InvenTreeAPI {
|
|||||||
debug("TimeoutException at ${url}");
|
debug("TimeoutException at ${url}");
|
||||||
showTimeoutError(url);
|
showTimeoutError(url);
|
||||||
return null;
|
return null;
|
||||||
|
} on OSError catch (error) {
|
||||||
|
debug("OSError at ${url}: ${error.toString()}");
|
||||||
|
showServerError(url, L10().connectionRefused, error.toString());
|
||||||
|
return null;
|
||||||
} on CertificateException catch (error) {
|
} on CertificateException catch (error) {
|
||||||
debug("CertificateException at ${url}:");
|
debug("CertificateException at ${url}:");
|
||||||
debug(error.toString());
|
debug(error.toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user