Commit graph

234 commits

Author SHA1 Message Date
Edward Betts cb3a9396de Handle deleted item for human 2020-11-01 15:21:27 +00:00
Edward Betts 60bb9febd9 Include QID and title in error mails
Closes: #31
2020-06-30 20:05:12 +01:00
Edward Betts ee61843183 Catch JSON error and retry 2020-06-30 16:26:01 +01:00
Edward Betts 845666dd5a Switch to POST for Commons API call
Avoid crash caused by URL being too long.
2020-06-30 14:28:34 +01:00
Edward Betts 8c715fe148 Handle malformed browse parameters
Examples:

* https://art.wikidata.link/browse?P1433%27[0]=Q28861951
* https://art.wikidata.link/browse?P1433=Q28861951%27[0]
2020-06-30 14:17:54 +01:00
Edward Betts 117459bb8f Ignore requests.exceptions.TooManyRedirects for catalog page 2020-06-30 14:00:59 +01:00
Edward Betts 98d84054d6 Handle 'unknown value' in depicts statement
Closes: #30
2020-06-30 13:21:32 +01:00
Edward Betts dc4455bec5 Catch and ignore UnicodeDecodeError in wd_catalog 2020-06-30 13:09:03 +01:00
Edward Betts 52db7ac00f rijksmuseum URL can point to English catalog page 2020-06-30 11:27:46 +01:00
Edward Betts efa06c9e33 Avoid crash on empty catalog page 2020-06-30 11:23:15 +01:00
Edward Betts fdd8b23118 Follow redirects for artwork 2020-06-30 11:17:21 +01:00
Edward Betts 298bef5c6b Follow redirects
Closes: #27
2020-06-30 11:06:46 +01:00
Edward Betts 52a7f94fd0 Bug fix 2020-06-30 09:07:13 +01:00
Edward Betts 3191ae51b0 Bug fix saam parser 2020-06-30 09:05:22 +01:00
Edward Betts dc9989157c Refactor 2020-06-30 09:01:57 +01:00
Edward Betts 9299909e2f Better image filename handling 2020-06-30 09:00:58 +01:00
Edward Betts 97e4501427 Proper display of save errors. 2020-04-22 17:13:03 +01:00
Edward Betts fce288dcee Catch save errors and report to admin. 2020-04-22 16:45:59 +01:00
Edward Betts 6194874380 Allow edit via proxy to avoid global IP block 2020-04-22 16:44:04 +01:00
Edward Betts e903c4092f Add the ability to mail admin. 2020-04-22 16:43:51 +01:00
Edward Betts 3d113a593c Add SHOW_BLOCK_ALERT config option. 2020-04-22 16:30:44 +01:00
Edward Betts 95d69ef302 Add block list report to show active blocks 2020-04-22 15:03:22 +01:00
Edward Betts 3bbb25226b The image associated with an item can change. 2020-03-04 09:07:11 +00:00
Edward Betts 5868810ddc Refactor. 2020-03-04 09:06:54 +00:00
Edward Betts 5c51341e7f No need to enumerate chunks. 2020-03-04 09:05:56 +00:00
Edward Betts 3999817cc9 Handle missing institution labels. 2020-03-04 09:05:35 +00:00
Edward Betts 3e551d89d9 Don't try to set label for new item during save. 2020-03-03 15:20:04 +00:00
Edward Betts 0aac0e46be Increase timeout for error mails. 2020-03-03 15:17:21 +00:00
Edward Betts 97ca0aaa34 Remove some unused code. 2020-01-16 14:01:43 +00:00
Edward Betts 93df781115 Better handling of read timeout from APIs 2020-01-08 15:39:25 +00:00
Edward Betts 9bbbb45fbb Show last non library frame on error page 2020-01-08 15:38:59 +00:00
Edward Betts 6ba4fc7e35 Correct URL for commons API. 2020-01-08 15:38:35 +00:00
Edward Betts c2ba2c988c Use last_frame for function_name 2020-01-08 15:38:16 +00:00
Edward Betts 0ff8545641 Stop catalog page from throwing errors. 2020-01-07 22:03:31 +00:00
Edward Betts d63e6b1218 Reverse get_image_detail_with_cache() bug fix 2020-01-07 21:59:20 +00:00
Edward Betts 76f6e3f994 Bug fix get_image_detail_with_cache() 2020-01-07 21:57:05 +00:00
Edward Betts 8eecad0f9e Add more detail to error mails. 2020-01-07 21:29:31 +00:00
Edward Betts 50dc706b32 identifier can be 'no value', example: Q26754456 2020-01-07 17:39:39 +00:00
Edward Betts d0ddcc96eb A human item replaced with a redirect causes confusion. 2020-01-07 15:10:59 +00:00
Edward Betts b77ba57b74 Adjust formatting of error page. 2020-01-07 14:44:20 +00:00
Edward Betts 849aa57780 Show locals in last frame during traceback. 2020-01-07 14:40:15 +00:00
Edward Betts 19c4a7d221 Remove debugging output. 2020-01-07 14:32:04 +00:00
Edward Betts 31cecb5c90 Show arguments of last function during error. 2020-01-07 14:29:52 +00:00
Edward Betts 412d4e1a18 Update exception.css from werkzeug 2020-01-07 14:29:14 +00:00
Edward Betts 3d3e66fb35 Drop unused import. 2020-01-01 14:24:29 +00:00
Edward Betts c201535d21 Drop unused import. 2020-01-01 14:23:30 +00:00
Edward Betts 7a6a2c9d5e Add LICENSE file: GPL-3
Closes: #15
2020-01-01 11:23:46 +00:00
Edward Betts 63f8d0f580 Add missing changes for catching non-artwork. 2019-12-31 09:01:20 +00:00
Edward Betts 63392b63bf Warn for non-artwork items. 2019-12-31 08:58:37 +00:00
Edward Betts 54b94923e6 Add pager to recent changes. 2019-12-30 16:11:19 +00:00