Skip to content

Commit

Permalink
One flake8 warning, and matrix extension
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Nov 25, 2017
1 parent 1c7028c commit f5b9c2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -6,7 +6,14 @@ python:
env:
- REQ='Django>=1.9,<1.10'
- REQ='Django>=1.10,<1.11'
- REQ="Django>=1.11,<2.0"
- REQ="Django==2.0rc1"
matrix:
allow_failures:
- env: REQ="Django==2.0rc1"
exclude:
- python: "2.7"
env: REQ="Django==2.0rc1"
install:
- pip install -q $REQ flake8
- python setup.py install
Expand Down
2 changes: 1 addition & 1 deletion towel/templatetags/modelview_detail.py
Expand Up @@ -43,7 +43,7 @@ def model_details(instance, fields=None):
value = mark_safe('<a href="%s">%s</a>' % (
fk.get_absolute_url(),
fk))
except: # Whatever.
except Exception: # Whatever.
value = fk
else:
value = fk
Expand Down

0 comments on commit f5b9c2a

Please sign in to comment.