exception type fixes
try/except around log in
try/except around log in fix