# \#connectxbee

**URL:** https://forums.digi.com/tag/connectxbee/2463.md

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

---

## [Iam getting default 'except:' must be last how can i fix the error and give me the necode the explanation?](https://forums.digi.com/t/iam-getting-default-except-must-be-last-how-can-i-fix-the-error-and-give-me-the-necode-the-explanation/18811)

<div class="topic-metadata">

**Author:** [@SShankaR135](https://forums.digi.com/u/SShankaR135)\
**Replies:** 0\
**Last updated:** [October 20, 2017, 1:04pm UTC](https://forums.digi.com/t/iam-getting-default-except-must-be-last-how-can-i-fix-the-error-and-give-me-the-necode-the-explanation/18811 "2017-10-20T13:04:04Z")

</div>

class SIException(Exception): def init(self,length,atleast): Exception.init(self) self.length=length self.atleast=atleast try: s=input(“Enter something:”) if len(s)\<3: raise SIException(len(s),3) except: print(…

---

## [Get initializing error port is already in use when trying to setup Xbee using XCTU. How can I fix this?](https://forums.digi.com/t/get-initializing-error-port-is-already-in-use-when-trying-to-setup-xbee-using-xctu-how-can-i-fix-this/15765)

<div class="topic-metadata">

**Author:** [@jdrebes](https://forums.digi.com/u/jdrebes)\
**Replies:** 1\
**Last updated:** [August 2, 2016, 12:36am UTC](https://forums.digi.com/t/get-initializing-error-port-is-already-in-use-when-trying-to-setup-xbee-using-xctu-how-can-i-fix-this/15765 "2016-08-02T00:36:38Z")

</div>

Trying to setup Xbee and continue to error initializing XBee device parameters port is already in use by other applications.
