Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
077550b5
Commit
077550b5
authored
Jul 26, 2015
by
James Keys
Committed by
Timothée Peignier
Jul 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Narrow the scope of try: except clause
parent
cd87d147
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
pipeline/finders.py
+2
-5
No files found.
pipeline/finders.py
View file @
077550b5
...
@@ -45,13 +45,10 @@ class CachedFileFinder(BaseFinder):
...
@@ -45,13 +45,10 @@ class CachedFileFinder(BaseFinder):
"""
"""
try
:
try
:
start
,
_
,
extn
=
path
.
rsplit
(
'.'
,
2
)
start
,
_
,
extn
=
path
.
rsplit
(
'.'
,
2
)
path
=
'.'
.
join
((
start
,
extn
))
result
=
find
(
path
,
all
=
all
)
if
not
result
:
return
[]
return
result
except
ValueError
:
except
ValueError
:
return
[]
return
[]
path
=
'.'
.
join
((
start
,
extn
))
return
find
(
path
,
all
=
all
)
or
[]
def
list
(
self
,
*
args
):
def
list
(
self
,
*
args
):
return
[]
return
[]
...
...
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