Skip to content

Commit

Permalink
fix(WMS.ServerUtils.getDB): prevent functions from returning None
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Apr 18, 2024
1 parent 19bdbc8 commit be86e0e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/DIRAC/WorkloadManagementSystem/Client/ServerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def getPilotAgentsDB():
if gPilotAgentsDB and gPilotAgentsDB._connected:
return gPilotAgentsDB
except Exception:
return Client(url="WorkloadManagement/PilotManager")
pass

return Client(url="WorkloadManagement/PilotManager")


def getVirtualMachineDB():
Expand All @@ -23,4 +25,6 @@ def getVirtualMachineDB():
if gVirtualMachineDB and gVirtualMachineDB._connected:
return gVirtualMachineDB
except Exception:
return Client(url="WorkloadManagement/VirtualMachineManager")
pass

return Client(url="WorkloadManagement/VirtualMachineManager")

0 comments on commit be86e0e

Please sign in to comment.