fixing try-except for ets