Skip to content

Commit

Permalink
Update distancetoatom.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andwar committed Jun 21, 2014
1 parent 8600f3b commit 88a5e96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions distancetoatom.py
Expand Up @@ -103,11 +103,11 @@ def distancetoatom(
quiet <bool> toggle verbosity
'''
# keyword check
ori=get_coord(origin)
if not origin:
print "distancetoatom: aborting - illegal input for 'origin'!"
return False
try:
ori=get_coord(origin)
if not ori:
print "distancetoatom: aborting - check input for 'origin'!"
return False
cutoff = abs(float(cutoff))
filename = str(filename)
selection = '(%s)'%selection
Expand Down

0 comments on commit 88a5e96

Please sign in to comment.