Skip to content

Commit 0254a11

Browse files
committed
removed exception catch
1 parent b97480a commit 0254a11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

OpenSMOG/OpenSMOG.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -656,11 +656,10 @@ def loadGro(self, Grofile):
656656
if not os.path.exists(Grofile):
657657
SBM.opensmog_quit("Could not find gro file {}".format(Grofile))
658658

659-
try:
659+
else:
660660
print("Will try to load coordinates from {}".format(Grofile))
661661
self.Gro = GromacsGroFile(Grofile)
662-
except:
663-
SBM.opensmog_quit("Failed to load {}".format(Grofile))
662+
664663

665664
def loadTop(self, Topfile):
666665
R"""Loads the *.top* file format in the OpenMM system platform. The input files are generated using SMOG2 software with the flag :code:`-OpenSMOG`. Details on how to create the files can be found in the `SMOG2 User Manual <https://smog-server.org/smog2/>`__.

0 commit comments

Comments
 (0)