fix : pretty_print issue

This commit is contained in:
martin legrand
2025-03-29 14:43:50 +01:00
parent f42a31578e
commit e69cff0735
4 changed files with 12 additions and 9 deletions
+2
View File
@@ -79,6 +79,8 @@ class Provider:
except AttributeError as e:
raise NotImplementedError(f"{str(e)}\nIs {self.provider_name} implemented ?")
except Exception as e:
if "RemoteDisconnected" in str(e):
return f"{self.server_ip} seem offline. RemoteDisconnected error."
raise Exception(f"Provider {self.provider_name} failed: {str(e)}") from e
return thought