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 67cc036 commit aa690ffCopy full SHA for aa690ff
src/murfey/instrument_server/api.py
@@ -351,7 +351,11 @@ def upload_gain_reference(
351
)
352
353
# Return the rsync URL if set, otherwise assume you are syncing via Murfey
354
- rsync_url = urlparse(str(machine_config.get("rsync_url", _get_murfey_url())))
+ rsync_url = urlparse(
355
+ str(machine_config["rsync_url"])
356
+ if machine_config.get("rsync_url", "")
357
+ else _get_murfey_url()
358
+ )
359
rsync_module = machine_config.get("rsync_module", "data")
360
rsync_path = f"{rsync_url.hostname}::{rsync_module}/{safe_visit_path}/{safe_destination_dir}/{secure_filename(gain_reference.gain_path.name)}"
361
0 commit comments