Solves mysterious issue

When running relational as an .exe file generated by
py2exe, that line might give an exception. Because of
reasons.

I don't know what the hell is going on and I don't care.
This commit is contained in:
Salvo 'LtWorf' Tomaselli 2015-09-14 19:45:09 +02:00
parent 38f9ced894
commit 6fad0cdf68

View File

@ -107,7 +107,10 @@ class UserInterface (object):
Either from bytes or from a file
'''
if session:
self.relations = pickle.loads(session)
try:
self.relations = pickle.loads(session)
except:
pass
elif filename:
with open(filename) as f:
self.relations = pickle.load(f)