Skip to content

Commit 0420a85

Browse files
committed
errorlib: fix Sentry context syntax issue
* Fixes Python syntax issue that slipped in the Sentry context support commit d73bd94. (addresses inveniosoftware#1960) (PR inveniosoftware#2147) Signed-off-by: Tibor Simko <[email protected]>
1 parent 4acc073 commit 0420a85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/miscutil/lib/errorlib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
##
33
## This file is part of Invenio.
4-
## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 CERN.
4+
## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013, 2014 CERN.
55
##
66
## Invenio is free software; you can redistribute it and/or
77
## modify it under the terms of the GNU General Public License as
@@ -409,7 +409,8 @@ def register_exception(stream='error',
409409
'env': req.environ})
410410
client.extra_context(user_info)
411411
filename = _get_filename_and_line(sys.exc_info())[0]
412-
client.tags_context({'filename': filename}, {'version', CFG_VERSION})
412+
client.tags_context({'filename': filename},
413+
{'version': CFG_VERSION})
413414
client.captureException()
414415
finally:
415416
client.context.clear()

0 commit comments

Comments
 (0)