Add handling for invalid login

This commit is contained in:
Omar Roth 2018-07-16 12:50:41 -05:00
parent 58b5e97fc4
commit 7494e864b4

View File

@ -220,10 +220,13 @@ before_all do |env|
sid = env.request.cookies["SID"].value sid = env.request.cookies["SID"].value
client = make_client(YT_URL) begin
user = get_user(sid, client, headers, PG_DB, false) 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
end end