Skip to content

Commit

Permalink
Release 1.10.4
Browse files Browse the repository at this point in the history
Fix a bug when showing old banner records that don't have the "transport" property
  • Loading branch information
achillean committed Oct 5, 2018
1 parent 1025723 commit da2da75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name = 'shodan',
version = '1.10.3',
version = '1.10.4',
description = 'Python library and command-line utility for Shodan (https://developer.shodan.io)',
long_description = README,
long_description_content_type = 'text/x-rst',
Expand Down
5 changes: 3 additions & 2 deletions shodan/cli/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ def host_print_pretty(host, history=False):
version = '({})'.format(banner['version'])

click.echo(click.style('{:>7d}'.format(banner['port']), fg='cyan'), nl=False)
click.echo('/', nl=False)
click.echo(click.style('{} '.format(banner['transport']), fg='yellow'), nl=False)
if 'transport' in banner:
click.echo('/', nl=False)
click.echo(click.style('{} '.format(banner['transport']), fg='yellow'), nl=False)
click.echo('{} {}'.format(product, version), nl=False)

if history:
Expand Down

0 comments on commit da2da75

Please sign in to comment.