Files
galaxy/scripts/api/display.py
T
Nicola Soranzo 5fe5b53bf3 Fix new ruff 0.11.0 errors
Also:
- Add and fix type annotations
- Fix call of `object_store_allows_id_selection()` method
2025-03-15 17:12:02 +00:00

18 lines
304 B
Python
Executable File

#!/usr/bin/env python
import os
import sys
from urllib.error import URLError
from common import display
try:
display(*sys.argv[1:3])
except TypeError as e:
print(f"usage: {os.path.basename(sys.argv[0])} key url")
print(e)
sys.exit(1)
except URLError as e:
print(e)
sys.exit(1)