summaryrefslogtreecommitdiff
path: root/lib/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi')
-rw-r--r--lib/cgi/session/pstore.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/cgi/session/pstore.rb b/lib/cgi/session/pstore.rb
index 033acc3249..e2727b5c5e 100644
--- a/lib/cgi/session/pstore.rb
+++ b/lib/cgi/session/pstore.rb
@@ -76,11 +76,7 @@ class CGI
def restore
unless @hash
@p.transaction do
- begin
- @hash = @p['hash']
- rescue
- @hash = {}
- end
+ @hash = @p['hash'] || {}
end
end
@hash