In case Project's Folder is duffed

I realized that I had some projects which are both not VCStudio type and not Blender-Organizer type. And so it was trying to load data about those when files weren't there. So I made it ignor-able in a way.
This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2020-12-01 06:52:10 +00:00
parent e85be921de
commit c756d96f23

View file

@ -250,12 +250,15 @@ def project_node(layer, win, x, y, project):
# Getting info about the project. For now only Legacy. Since nothing is
# written for the new stuff.
if project not in win.projects:
win.projects[project] = analytics.get_legacy(project)
nameonly = win.projects[project]["name"]
timefraction = win.projects[project]["timepassed"]
projectfraction = win.projects[project]["fraction"]
try:
if project not in win.projects:
win.projects[project] = analytics.get_legacy(project)
nameonly = win.projects[project]["name"]
timefraction = win.projects[project]["timepassed"]
projectfraction = win.projects[project]["fraction"]
except:
pass
node.set_line_width(10)
UI_elements.roundrect(node, win,