Add handling for invalid login

pull/9/head
Omar Roth 7 years ago
parent 58b5e97fc4
commit 7494e864b4

@ -220,10 +220,13 @@ before_all do |env|
sid = env.request.cookies["SID"].value
client = make_client(YT_URL)
user = get_user(sid, client, headers, PG_DB, false)
begin
client = make_client(YT_URL)
user = get_user(sid, client, headers, PG_DB, false)
env.set "user", user
env.set "user", user
rescue ex
end
end
end

Loading…
Cancel
Save