Skip to content

Commit 989dcca

Browse files
committed
Handle UnboundLocalError in postprocessing
1 parent 40ad211 commit 989dcca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynta/postprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ def get_species(path,adsorbates_path,metal,facet,slab,sites,site_adjacency,nslab
12131213
spc = SurfaceConfiguration(atoms,slab,admol,vibdata,name,metal,facet,is_TS=False,sites_per_cell=1,
12141214
c_ref=c_ref,o_ref=o_ref,h_ref=h_ref,n_ref=n_ref,valid=valid)
12151215
spc.run()
1216-
except (ValueError,AtomTypeError):
1216+
except (ValueError,AtomTypeError,UnboundLocalError):
12171217
spc = None
12181218
else:
12191219
try:

0 commit comments

Comments
 (0)