diff --git a/_modules/alab_management/resource_manager/resource_requester.html b/_modules/alab_management/resource_manager/resource_requester.html index a699caf..f228f98 100644 --- a/_modules/alab_management/resource_manager/resource_requester.html +++ b/_modules/alab_management/resource_manager/resource_requester.html @@ -387,14 +387,20 @@

Source code for alab_management.resource_manager.resource_requester

# considering concurrent.futures.TimeoutError and TimeoutError becomes the same +# from Python 3.11. We should determine the base class of this exception. +if isinstance(concurrent.futures.TimeoutError, TimeoutError): + CombinedTimeoutError = TimeoutError +else: +
[docs] -class CombinedTimeoutError(TimeoutError, concurrent.futures.TimeoutError): - """ - Combined TimeoutError. + class CombinedTimeoutError(TimeoutError, concurrent.futures.TimeoutError): + """ + Combined TimeoutError. - If you catch either TimeoutError or concurrent.futures.TimeoutError, this will catch both. - """
+ If you catch either TimeoutError or concurrent.futures.TimeoutError, this will catch both. + """