Skip to content

Commit

Permalink
Fix fatal bug on plug-in start
Browse files Browse the repository at this point in the history
  • Loading branch information
khalim19 committed Oct 23, 2022
1 parent 62d0c97 commit e26098e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion export_layers/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,11 @@ def _fix_module_paths_in_parasites_3_3_2():
gimp.parasite_attach(
gimp.Parasite('plug_in_export_layers', gimpenums.PARASITE_PERSISTENT, new_data))

session_parasite = gimp.get_data(key)
try:
session_parasite = gimp.get_data(key)
except gimp.error:
session_parasite = None

if session_parasite:
new_data = session_parasite
for old_path, new_path in paths_to_rename:
Expand Down

0 comments on commit e26098e

Please sign in to comment.