Skip to content

Commit

Permalink
fix(getMonitoringDB) returning None
Browse files Browse the repository at this point in the history
(cherry picked from commit 749ce65)
  • Loading branch information
fstagni authored and andresailer committed Apr 18, 2024
1 parent f23906f commit d073833
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/DIRAC/MonitoringSystem/Client/ServerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def getMonitoringDB():
if gMonitoringDB and gMonitoringDB._connected:
return gMonitoringDB
except Exception:
from DIRAC.Core.Base.Client import Client
pass

return Client(url="Monitoring/Monitoring")
from DIRAC.Core.Base.Client import Client

return Client(url="Monitoring/Monitoring")
4 changes: 3 additions & 1 deletion src/DIRAC/WorkloadManagementSystem/Client/ServerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ def getPilotAgentsDB():
if gPilotAgentsDB and gPilotAgentsDB._connected:
return gPilotAgentsDB
except Exception:
return Client(url="WorkloadManagement/PilotManager")
pass

return Client(url="WorkloadManagement/PilotManager")

0 comments on commit d073833

Please sign in to comment.