Skip to content

Commit

Permalink
py 2 to 3
Browse files Browse the repository at this point in the history
fix the example given in #114
  • Loading branch information
noraj authored Jan 25, 2020
1 parent 9e75eb9 commit ba56193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Now that we have our API object all good to go, we're ready to perform a search:
print('IP: {}'.format(result['ip_str']))
print(result['data'])
print('')
except shodan.APIError, e:
except shodan.APIError as e:
print('Error: {}'.format(e))
Stepping through the code, we first call the :py:func:`Shodan.search` method on the `api` object which
Expand Down

0 comments on commit ba56193

Please sign in to comment.