Skip to content

Commit 7e469de

Browse files
committed
Add error message with Rigaku validation failure
1 parent 66495c3 commit 7e469de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GSASII/imports/G2pwd_rigaku.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ def ContentsValidator(self, filename):
167167
self.powderentry[0] = filename
168168
self.comments = []
169169
return True
170-
except:
170+
except Exception as msg:
171+
self.errors = f'rasx open/read error\n{msg}'
171172
return False
172173
else:
173174
fp.seek(0)

0 commit comments

Comments
 (0)