Skip to content

Commit

Permalink
FormatSMVJHSim AttributeError bugfix (cctbx#710)
Browse files Browse the repository at this point in the history
* Bugfix: need to avoid None

* News

* Rename newsfragments/xxx.bugfix to newsfragments/710.bugfix

---------

Co-authored-by: DiamondLightSource-build-server <[email protected]>
  • Loading branch information
dagewa and DiamondLightSource-build-server committed Mar 15, 2024
1 parent 027d9bb commit 34d15fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/710.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix error introduced in FormatSMVJHSim that caused test failures.
2 changes: 1 addition & 1 deletion src/dxtbx/format/FormatSMVJHSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def understand(image_file):

size, header = FormatSMV.get_smv_header(image_file)

if header.get("BEAMLINE").lower() == "fake":
if header.get("BEAMLINE", "").lower() == "fake":
return True
else:
return False
Expand Down

0 comments on commit 34d15fa

Please sign in to comment.