File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/murfey/instrument_server Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ Bug-Tracker = "https://github.com/DiamondLightSource/python-murfey/issues"
8080Documentation = " https://github.com/DiamondLightSource/python-murfey"
8181GitHub = " https://github.com/DiamondLightSource/python-murfey"
8282[project .scripts ]
83- murfey = " murfey.client:run"
8483"murfey.add_user" = " murfey.cli.add_user:run"
84+ "murfey.client" = " murfey.client:run"
8585"murfey.create_db" = " murfey.cli.create_db:run"
8686"murfey.db_sql" = " murfey.cli.murfey_db_sql:run"
8787"murfey.decrypt_password" = " murfey.cli.decrypt_db_password:run"
Original file line number Diff line number Diff line change 11import argparse
22import logging
3+ from urllib .parse import urlparse
34
45import uvicorn
56from rich .logging import RichHandler
67
78import murfey
9+ import murfey .client .update
810from murfey .client .customlogging import CustomHandler
911from murfey .util import LogFilter
1012from murfey .util .client import read_config
@@ -27,6 +29,12 @@ def run():
2729 )
2830 args = parser .parse_args ()
2931
32+ murfey_url = urlparse (read_config ()["Murfey" ].get ("server" ), allow_fragments = False )
33+ try :
34+ murfey .client .update .check (murfey_url )
35+ except Exception as e :
36+ print (f"Murfey update check failed with { e } " )
37+
3038 LogFilter .install ()
3139
3240 rich_handler = RichHandler (enable_link_path = False )
You can’t perform that action at this time.
0 commit comments