Skip to content

Commit 4f9a8ed

Browse files
committed
apbsplugin: Catch psize Python 3 error
1 parent a7844c5 commit 4f9a8ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/apbsplugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,8 @@ class NoPDB(Exception):
12631263
finegridpoints = size.getFineGridPoints() # dime
12641264
center = size.getCenter() # cgcent and fgcent
12651265
print("APBS's psize.py was used to calculated grid dimensions")
1266-
except (NoPsize, ImportError):
1266+
except (NoPsize, ImportError, AttributeError) as e:
1267+
print(e)
12671268
print("This plugin was used to calculated grid dimensions")
12681269
#
12691270
# First, we need to get the dimensions of the molecule

0 commit comments

Comments
 (0)