Skip to content
Snippets Groups Projects
Commit 062e0c5e authored by jarsi's avatar jarsi
Browse files

Swap content in try except block for a more logical flow

parent b6d7da05
No related branches found
No related tags found
1 merge request!11Swap content in try except block for a more logical flow
......@@ -312,9 +312,9 @@ class Simulation:
Use NEST's memory wrapper function to record used memory.
"""
try:
mem = nest.sli_func('memory_thisjob')
except AttributeError:
mem = nest.ll_api.sli_func('memory_thisjob')
except AttributeError:
mem = nest.sli_func('memory_thisjob')
if isinstance(mem, dict):
return mem['heap']
else:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment