merge_items_with_descriptions_from_inventory
неизвестно что возвращает, возможно в каком-то случае возвращает None
None
, то и останется None
. def ttt(error):
print('one')
if error:
raise Exception
print('two')
return 'three'
def rrr(error=0):
return ttt(error=error)
for i in range(2):
eee = None
print(f'error = {bool(i)}')
try:
eee = rrr(i)
except Exception:
pass
print(eee)
print()