Skip to content

Commit

Permalink
Merge pull request #115 from noraj/patch-1
Browse files Browse the repository at this point in the history
py 2 to 3
  • Loading branch information
achillean authored Jan 31, 2020
2 parents 4bdcd68 + ba56193 commit 44fc39e
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 44fc39e

Please sign in to comment.