mirror of
https://github.com/basicswap/basicswap.git
synced 2026-03-01 17:05:10 +01:00
Change connection errors to warnings.
This commit is contained in:
@@ -134,3 +134,7 @@ class BaseApp:
|
||||
if len(out[1]) > 0:
|
||||
raise ValueError('CLI error ' + str(out[1]))
|
||||
return out[0].decode('utf-8').strip()
|
||||
|
||||
def is_transient_error(ex):
|
||||
str_error = str(ex).tolower()
|
||||
return 'read timed out' in str_error or 'no connection to daemon' in str_error
|
||||
|
||||
Reference in New Issue
Block a user