tRemoved exceptions as dinosaur python distributions on grendel do not support … | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 2c93b68798d09861455c6f050c0f4374cbf57574 | |
parent 838ab5a7172daca802dfb5f095f7969b0dc546b6 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 13 Dec 2012 10:51:49 +0100 | |
Removed exceptions as dinosaur python distributions on grendel do not support t… | |
Diffstat: | |
M python/sphere.py | 5 ----- | |
1 file changed, 0 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -1327,8 +1327,6 @@ def visualize(project, method = 'energy', savefig = True… | |
sigma[i]/1000.0, | |
tau[i]/1000.0, | |
dilation[i]/L*100.0)) | |
- except (EnvironmentError, ValueError) as err: | |
- print("{0}: export error: {1}".format(os.path.basename(sys.argv[0]… | |
finally : | |
if fh is not None: | |
fh.close() | |
t@@ -1365,9 +1363,6 @@ def status(project): | |
data = fh.read() | |
#print(data) | |
return int(data.split()[2]) # Return last file number | |
- except (EnvironmentError, ValueError, KeyError) as err: | |
- print("status.py: import error: {0}".format(err)) | |
- return False | |
finally : | |
if fh is not None: | |
fh.close() |