Commit 604008e2 authored by Luci Stanescu's avatar Luci Stanescu

Fixed load to fallback when unpickling fails

parent 75a34982
......@@ -634,10 +634,10 @@ class ContactModel(QAbstractListModel):
try:
file = open(ApplicationData.get('contacts'))
items = pickle.load(file)
except (IOError, OSError):
except Exception:
file = open(ApplicationData.get('contacts.bak'))
items = pickle.load(file)
except (IOError, OSError):
except Exception:
file = None
group = ContactGroup('Test')
contacts = [Contact(group, 'Call Test', '3333@sip2sip.info', 'icons/3333@sip2sip.info.png'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment