complete try-except block