This repository was archived by the owner on Feb 10, 2023. It is now read-only.
File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 20
20
LESS = "less -FXRSn"
21
21
HISTORY_FILE_SIZE = 500
22
22
23
- __version__ = '0.1.0 '
23
+ __version__ = '0.1.1 '
24
24
25
25
26
26
class AthenaBatch (object ):
@@ -195,7 +195,7 @@ def default(self, line):
195
195
headers = [h ['Name' ] for h in results ['ResultSet' ]['ResultSetMetadata' ]['ColumnInfo' ]]
196
196
row_count = len (results ['ResultSet' ]['Rows' ])
197
197
198
- if headers and results ['ResultSet' ]['Rows' ][0 ]['Data' ][0 ].get ('VarCharValue' , None ) == headers [0 ]:
198
+ if headers and len ( results [ 'ResultSet' ][ 'Rows' ]) and results ['ResultSet' ]['Rows' ][0 ]['Data' ][0 ].get ('VarCharValue' , None ) == headers [0 ]:
199
199
row_count -= 1 # don't count header
200
200
201
201
process = subprocess .Popen (self .pager , stdin = subprocess .PIPE )
Original file line number Diff line number Diff line change 2
2
$ python setup.py bdist_wheel --universal
3
3
$ twine upload dist/athena_cli-0.0.x-py2.py3-none-any.whl
4
4
```
5
+ ```
6
+ $ python setup.py sdist bdist_wheel upload
7
+ ```
Original file line number Diff line number Diff line change
1
+ [wheel]
2
+ universal = 1
Original file line number Diff line number Diff line change 1
1
2
2
from setuptools import setup , find_packages
3
3
4
- version = '0.1.0 '
4
+ version = '0.1.1 '
5
5
6
6
setup (
7
7
name = "athena-cli" ,
You can’t perform that action at this time.
0 commit comments