Skip to content
Snippets Groups Projects
Commit 74b4de79 authored by tobias's avatar tobias
Browse files

added LogError to calculate surfaces button

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2646 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 21cdbcbd
Branches
Tags
No related merge requests found
......@@ -4,8 +4,11 @@ from PyQt4 import QtCore, QtGui
import sip
from subprocess import CalledProcessError
from ost import geom, gfx, gui, seq
from ost import settings
from ost import LogError
from ost.bindings import tmtools
from ost.bindings import msms
from ost.seq import alg
......@@ -214,7 +217,8 @@ class SurfaceContextMenu(QtCore.QObject):
selection=selection,
no_hydrogens=noh)[0]
gfx.Scene().Add(gfx.Surface("%s_%s"%(entity.GetName(),name),s))
except RuntimeError:
except (RuntimeError, CalledProcessError):
LogError("WARNING: Surface could not be calculated")
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment