Skip to content

Commit e11c30a

Browse files
author
andamian
authored
Update vcat.py (#196)
* Update vcat.py
1 parent 9a1476b commit e11c30a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

vos/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ edit_on_github = False
5050
github_project = opencadc/vostools
5151
install_requires = html2text>=2016.5.29 cadcutils>=1.2.1 future aenum
5252
# version should be PEP440 compatible (http://www.python.org/dev/peps/pep-0440)
53-
version = 3.3.3
53+
version = 3.3.4
5454

5555

5656
[entry_points]

vos/vos/commands/vcat.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ def _cat(uri, cert_filename=None, head=None):
2020
fh = None
2121
try:
2222
view = head and 'header' or 'data'
23-
fh = Client(vospace_certfile=cert_filename).open(uri, view=view)
24-
if fh.is_remote_file(uri):
23+
c = Client(vospace_certfile=cert_filename)
24+
fh = c.open(uri, view=view)
25+
if c.is_remote_file(uri):
2526
sys.stdout.write(fh.read(return_response=True).text)
2627
sys.stdout.write('\n\n')
2728
else:

0 commit comments

Comments
 (0)