Commit 034d5e60 authored by Berk Onat's avatar Berk Onat

Fixed NoneType access for topocode.

parent 2faa22bc
......@@ -4519,7 +4519,7 @@ class MDDataAccess(object):
self.topocode is not None):
topocode = self.topocode
if self.topohandler is not None:
if self.topohandler is not None and topocode is not None:
if "gromosread" in topocode:
n_atoms = len(self.topohandler.atoms)
elif "pymolfile" in topocode:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment