Correct error handling

This commit is contained in:
Michał Gdula 2023-04-05 16:34:00 +00:00
parent b40428f5aa
commit ee220bacbc

View file

@ -279,7 +279,7 @@ def lens_specification(value):
""" """
try: try:
return str(value[0] / value[1]) + 'mm - ' + str(value[2] / value[3]) + 'mm' return str(value[0] / value[1]) + 'mm - ' + str(value[2] / value[3]) + 'mm'
except ValueError: except TypeError:
return None return None