| | 167 | |
| | 168 | if gajim.otr_module: |
| | 169 | self.otr_userstates = gajim.otr_module.otrl_userstate_create() |
| | 170 | |
| | 171 | try: |
| | 172 | gajim.otr_module.otrl_privkey_read(self.otr_userstates, |
| | 173 | os.path.join(gajimpaths.root, |
| | 174 | '%s.key' % self.name).encode()) |
| | 175 | except Exception, e: |
| | 176 | if hasattr(e, 'os_errno') and e.os_errno == 2: |
| | 177 | pass |
| | 178 | |
| | 179 | try: |
| | 180 | gajim.otr_module.otrl_privkey_read_fingerprints( |
| | 181 | self.otr_userstates, os.path.join( |
| | 182 | gajimpaths.root, '%s.fpr' % self.name |
| | 183 | ).encode(), (add_appdata, a)) |
| | 184 | except Exception, e: |
| | 185 | if hasattr(e, 'os_errno') and e.os_errno == 2: |
| | 186 | pass |