Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3b8405ad
Commit
3b8405ad
authored
Nov 03, 2021
by
Eduardo Bonet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not raising expections for invalid notebooks on dev
parent
b8a05993
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/presenters/blob_presenter.rb
app/presenters/blob_presenter.rb
+1
-1
lib/gitlab/diff/file.rb
lib/gitlab/diff/file.rb
+1
-1
No files found.
app/presenters/blob_presenter.rb
View file @
3b8405ad
...
@@ -133,7 +133,7 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated
...
@@ -133,7 +133,7 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated
@transformed_blob
||=
blob
.
data
@transformed_blob
||=
blob
.
data
rescue
IpynbDiff
::
InvalidNotebookError
=>
e
rescue
IpynbDiff
::
InvalidNotebookError
=>
e
Gitlab
::
ErrorTracking
.
track_
and_raise_for_dev_
exception
(
e
,
issue_url:
'https://gitlab.com/gitlab-org/gitlab/-/issues/344676'
)
Gitlab
::
ErrorTracking
.
track_exception
(
e
,
issue_url:
'https://gitlab.com/gitlab-org/gitlab/-/issues/344676'
)
blob
.
data
blob
.
data
end
end
end
end
lib/gitlab/diff/file.rb
View file @
3b8405ad
...
@@ -468,7 +468,7 @@ module Gitlab
...
@@ -468,7 +468,7 @@ module Gitlab
lib_version:
Gem
.
loaded_specs
[
"ipynbdiff"
].
version
.
version
})
lib_version:
Gem
.
loaded_specs
[
"ipynbdiff"
].
version
.
version
})
rescue
IpynbDiff
::
InvalidNotebookError
=>
e
rescue
IpynbDiff
::
InvalidNotebookError
=>
e
Gitlab
::
ErrorTracking
.
track_
and_raise_for_dev_
exception
(
e
,
issue_url:
'https://gitlab.com/gitlab-org/gitlab/-/issues/344676'
)
Gitlab
::
ErrorTracking
.
track_exception
(
e
,
issue_url:
'https://gitlab.com/gitlab-org/gitlab/-/issues/344676'
)
end
end
def
alternate_viewer_class
def
alternate_viewer_class
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment