-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: invalid syntax #25
Comments
@fhocutt ? |
Whoa, that's interesting. I'll take a look at it. At a first glance, looks like an issue with literal_eval. |
Right: looks like it's causing a UnicodeDecodeError on the Plagiabot end, and instead of handling that internally or serving an error message, the server is providing an HTML page with stack trace details: I'll see about adding a check for that this week. |
Ah-hah, so it's not technically our fault. A bit disappointing to see Unicode problems on their end, though... |
Looks to be fixed upstream: valhallasw/plagiabot/issues/3 |
In this request
I'v got an error:
Traceback (most recent call last): File "/data/project/copyvios/www/python/src/app.py", line 38, in inner return func(*args, **kwargs) File "/data/project/copyvios/www/python/src/app.py", line 104, in index query = do_check() File "./copyvios/checker.py", line 38, in do_check _get_results(query, follow=not _coerce_bool(query.noredirect)) File "./copyvios/checker.py", line 74, in _get_results query.turnitin_result = search_turnitin(query.title, query.lang) File "./copyvios/turnitin.py", line 22, in search_turnitin return TurnitinResult(_make_api_request(page_title, lang)) File "./copyvios/turnitin.py", line 35, in _make_api_request parsed_api_result = literal_eval(result.text) File "/usr/lib/python2.7/ast.py", line 49, in literal_eval node_or_string = parse(node_or_string, mode='eval') File "/usr/lib/python2.7/ast.py", line 37, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File "<unknown>", line 1 <body bgcolor="#f0f0f8"> ^ SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: