We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 368dd2f commit 1f9947bCopy full SHA for 1f9947b
src/murfey/instrument_server/__init__.py
@@ -1,10 +1,12 @@
1
import argparse
2
import logging
3
+from urllib.parse import urlparse
4
5
import uvicorn
6
from rich.logging import RichHandler
7
8
import murfey
9
+import murfey.client.update
10
from murfey.client.customlogging import CustomHandler
11
from murfey.util import LogFilter
12
from murfey.util.client import read_config
@@ -27,6 +29,12 @@ def run():
27
29
)
28
30
args = parser.parse_args()
31
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
+
38
LogFilter.install()
39
40
rich_handler = RichHandler(enable_link_path=False)
0 commit comments