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:
parent
38f9ced894
commit
6fad0cdf68
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user