Skip to content

Commit 19b92a0

Browse files
committed
Reverted 'if' expression to be compatble with Ubuntu 18.04
1 parent 974a1da commit 19b92a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TigGUI/Images/Manager.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ def trimarray(array):
624624
# restore card comments
625625
for card in template.fits_header.keys():
626626
if card in _header:
627-
if com := template.fits_header.comments[card]:
627+
com = template.fits_header.comments[card]
628+
if com:
628629
_header.set(keyword=card, comment=com)
629630

630631
# set new header

0 commit comments

Comments
 (0)