# Try Catch not working

**URL:** <https://forum.robotframework.org/t/try-catch-not-working/4483>\
**Category:** Robot Framework\
**Created:** [8 August 2022 17:21 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483 "2022-08-08T17:21:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juma](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@Juma](https://forum.robotframework.org/u/Juma)\
**Post date:** [8 August 2022 17:21 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/1 "2022-08-08T17:21:02Z")

</div>

Hello. Greetings to the entire Robotframework team and community. To report that the try catch functionality does not work in version 5.0.1. Therefore, we consult if it is necessary to install any additional application or configuration. Thank you and we are attentive to the answer.

 ![Try Catch Robotframework](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/0/0db72cb6c3722f92de64118004d1d0187a005ea6.jpeg)

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [8 August 2022 23:08 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/2 "2022-08-08T23:08:48Z")

</div>

You show wrong use of the control structure. Please consult the [User Guide](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#toc-entry-355).

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [8 August 2022 23:10 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/3 "2022-08-08T23:10:08Z")

</div>

Also that IDE may not have been updated to highlight the new code structures.

---

<div class="post-metadata">

**Author:** ![Juma](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@Juma](https://forum.robotframework.org/u/Juma)\
**Post date:** [9 August 2022 02:17 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/4 "2022-08-09T02:17:26Z")

</div>

Thank you very much for the prompt response. Effectively update IDE Pycharm to the latest version available (2002.2) and also update the Python interpreter to 3.10. Restart the app and still don’t recognize the TRY/EXCEPT keywords. It is possible to provide a simple example to conform or discard if we would indeed have an error. Thank you very much and I remain attentive.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/3/315601456d7ca984d0dbc640b9383f684812ae00.png)

---

<div class="post-metadata">

**Author:** ![robinmackaij](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/robinmackaij/32/126_2.png) [@robinmackaij](https://forum.robotframework.org/u/robinmackaij)\
**Post date:** [14 August 2022 16:42 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/5 "2022-08-14T16:42:54Z")

</div>

You need to update the LSP plugin to the latest version. This has little to do with Python or PyCharm version.

---

<div class="post-metadata">

**Author:** ![Juma](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@Juma](https://forum.robotframework.org/u/Juma)\
**Post date:** [2 September 2022 22:33 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/6 "2022-09-02T22:33:23Z")

</div>

You could walk me through fa’ what it would be like to update the LSP plugin to the latest version. thank you very much.

---

<div class="post-metadata">

**Author:** ![saleelm](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@saleelm](https://forum.robotframework.org/u/saleelm)\
**Post date:** [8 September 2022 10:20 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/7 "2022-09-08T10:20:21Z")

</div>

I am able to use Try Except In mac OS with Robotframework version 5.0.1 but it’s not working on the Ubuntu server with robot framework version 5.0.1.

Is there any other package that needs to be installed on the Linux server?

---

<div class="post-metadata">

**Author:** ![saleelm](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@saleelm](https://forum.robotframework.org/u/saleelm)\
**Post date:** [8 September 2022 13:52 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/8 "2022-09-08T13:52:56Z")

</div>

Getting error as `No keyword with name 'TRY' found.` is it fine if we have python version 3.8 ? is this needs to be updated?

Robotframework version:5.0.1

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [8 September 2022 14:38 UTC](https://forum.robotframework.org/t/try-catch-not-working/4483/9 "2022-09-08T14:38:59Z")

</div>

Double check the installation because, you are not really seeing RF 5.0.1.

When we have several Python setups, this is a common error.

Execute RF with:

```python
python3.8 -m robot --version

```
