Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
304 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python
2016-02-18 12:54:29 +00:00
import os
import sys
2020-10-06 18:49:19 +01:00
from urllib.error import URLError
2025-03-15 16:43:25 +00:00
from common import display
try:
2017-08-17 00:33:02 +01:00
display(*sys.argv[1:3])
2016-02-18 12:54:29 +00:00
except TypeError as e:
2024-04-27 16:03:22 +01:00
print(f"usage: {os.path.basename(sys.argv[0])} key url")
2016-02-18 12:54:29 +00:00
print(e)
2017-08-17 00:33:02 +01:00
sys.exit(1)
2016-02-18 12:54:29 +00:00
except URLError as e:
print(e)
2017-08-17 00:33:02 +01:00
sys.exit(1)