Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 33836a3

Browse files
committed
fix linter error
1 parent faf4d7b commit 33836a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ckan/views/dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ def history(package_type, id):
10981098
revision_date = h.date_str_to_datetime(revision_dict[u'timestamp'])
10991099
try:
11001100
dayHorizon = int(request.args.get(u'days'))
1101-
except:
1101+
except Exception:
11021102
dayHorizon = 30
11031103
dayAge = (datetime.datetime.now() - revision_date).days
11041104
if dayAge >= dayHorizon:

ckanext/example_flask_streaming/tests/test_streaming_responses.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_template_streaming(self):
4242
bound = 7
4343
url = str(u'/stream/template/{}'.format(bound)) # produces nums list
4444
resp = self._get_resp(url)
45-
content = ''.join(resp.app_iter)
45+
content = u''.join(resp.app_iter)
4646
for i in range(bound):
4747
ok_(str(i) in content)
4848
resp._app_iter.close()

0 commit comments

Comments
 (0)