-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.log.1
135 lines (135 loc) · 9.52 KB
/
api.log.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Exception on /views/results [POST]
Traceback (most recent call last):
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask_restplus/api.py", line 583, in error_router
return original_handler(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/aryton/Kode/counter_point/app/views.py", line 39, in get_results
input_article = create_article(article_url)
UnboundLocalError: local variable 'create_article' referenced before assignment
Exception on /views/results [POST]
Traceback (most recent call last):
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask_restplus/api.py", line 583, in error_router
return original_handler(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/aryton/Kode/counter_point/app/views.py", line 39, in get_results
input_article = create_article(article_url)
UnboundLocalError: local variable 'create_article' referenced before assignment
Exception on /views/results [POST]
Traceback (most recent call last):
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask_restplus/api.py", line 583, in error_router
return original_handler(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/aryton/Kode/counter_point/app/views.py", line 39, in get_results
input_article = create_article(article_url)
UnboundLocalError: local variable 'create_article' referenced before assignment
Exception on /views/results [POST]
Traceback (most recent call last):
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask_restplus/api.py", line 583, in error_router
return original_handler(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/aryton/Kode/counter_point/app/views.py", line 48, in get_results
input_article = create_article(article_url)
File "/home/aryton/Kode/counter_point/app/views.py", line 31, in create_article
article_text = text_from_html(requests.get(article).content)
NameError: name 'article' is not defined
Exception on /views/results [POST]
Traceback (most recent call last):
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask_restplus/api.py", line 583, in error_router
return original_handler(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/aryton/Kode/counter_point/app/views.py", line 90, in get_results
neutral_articles.append(create_article(neutral_url))
AttributeError: 'str' object has no attribute 'append'
Exception on /views/results [POST]
Traceback (most recent call last):
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask_restplus/api.py", line 583, in error_router
return original_handler(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/aryton/Kode/counter_point/app/views.py", line 98, in get_results
return render_template('results.html', main_article=input_article, article_trunc=('%.40s' % a.url),
NameError: name 'a' is not defined
Exception on /views/results [POST]
Traceback (most recent call last):
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask_restplus/api.py", line 583, in error_router
return original_handler(e)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/aryton/Kode/counter_point/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/aryton/Kode/counter_point/app/views.py", line 99, in get_results
positive_list=positive_list, neutral_list=neutral_list, negative_list=negative_list)
NameError: name 'positive_list' is not defined