# Script weird behavior with system.perspective.openPopup

**URL:** <https://forum.inductiveautomation.com/t/script-weird-behavior-with-system-perspective-openpopup/83651>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [January 1, 2024, 12:45pm UTC](https://forum.inductiveautomation.com/t/script-weird-behavior-with-system-perspective-openpopup/83651 "2024-01-01T12:45:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 1, 2024, 7:12pm UTC](https://forum.inductiveautomation.com/t/script-weird-behavior-with-system-perspective-openpopup/83651/4 "2024-01-01T19:12:56Z")

</div>

> [@Ali\_Ali](#):
>
> If you can give me an example I would be grateful.

Use something like this:

> [@Using Java.net Socket](https://forum.inductiveautomation.com/t/using-java-net-socket/79962/21):
>
> That won't catch everything. And it mixes data types for e. I use (and strongly recommend) this construct (shown as if a library script): from java.lang import Throwable logger = system.util.getLogger(system.util.getProjectName() + '.' + \_\_name\_\_) def someTask(): try: someaction() except Throwable, t: # Throwable is the ultimate superclass of all java exceptions and errors logger.warn("some text for java", t) except Exception, e # Exception is python's superclass (technically Bas…

---

_[View the full topic](https://forum.inductiveautomation.com/t/script-weird-behavior-with-system-perspective-openpopup/83651)._
