# getUser() function scope?

**URL:** <https://forum.inductiveautomation.com/t/getuser-function-scope/62959>\
**Category:** General Discussion\
**Tags:** perspective, scripting, ignition81\
**Created:** [August 12, 2022, 4:16pm UTC](https://forum.inductiveautomation.com/t/getuser-function-scope/62959 "2022-08-12T16:16:09Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 12, 2022, 4:57pm UTC](https://forum.inductiveautomation.com/t/getuser-function-scope/62959/7 "2022-08-12T16:57:21Z")

</div>

> [@Catch IOException?](https://forum.inductiveautomation.com/t/catch-ioexception/18612/3):
>
> Consider using two except blocks, as jython’s standard Exception won’t catch pure java exceptions. Like so: import java.lang.Exception try: # something something something except Exception, e: # jython exception except java.lang.Exception, e: # java exception

---

_[View the full topic](https://forum.inductiveautomation.com/t/getuser-function-scope/62959)._
