# \#python

**URL:** https://forum.squirro.com/tag/python/17.md

[Latest](https://forum.squirro.com/latest.md) · [Categories](https://forum.squirro.com/categories.md) · [Tags](https://forum.squirro.com/tags.md)

---

## [Python Tip: How to abort a code block if its taking too long](https://forum.squirro.com/t/python-tip-how-to-abort-a-code-block-if-its-taking-too-long/68)

<div class="topic-metadata">

**Author:** [@tonibirrer](https://forum.squirro.com/u/tonibirrer)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 1:03pm UTC](https://forum.squirro.com/t/python-tip-how-to-abort-a-code-block-if-its-taking-too-long/68 "2022-02-25T13:03:25Z")

</div>

Sharing a quick tip that helped me a lot the other day. Whenever you use python to integrate anything 3rd party, there is a risk that a transaction with this 3rd party API might be hanging. This happened to me recently …
