Skip to content

Commit

Permalink
add tests and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Matan Yechiel committed May 8, 2023
1 parent 84deadd commit 51e6f3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/url_latest_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
def get_url_latest_analysis(url: str):
api.set_global_api('<api-key>')
analysis = UrlAnalysis.from_latest_analysis(url)
pprint(analysis.result())
if analysis:
pprint(analysis.result())

if __name__ == '__main__':
get_url_latest_analysis(*sys.argv[1:])

0 comments on commit 51e6f3c

Please sign in to comment.