Open thomersch opened 7 months ago
I have the same issue as @thomersch . I did the following adhoc change to the prettydate()
function, which seems to have solved it. At least the plugin selection screen is shown now.
try:
return "{day}{suffix} {month} {year}".format(
day=date.day,
month=date.strftime("%B"),
suffix=suffix(date.day),
year=date.year,
)
except:
return date
Same here. Installed the application, wanted to install a plugin and got the same error.
I'm having the same issue. Please let us know what we can do to help debug it.
I have the same issue as @thomersch . I did the following adhoc change to the
prettydate()
function, which seems to have solved it. At least the plugin selection screen is shown now.try: return "{day}{suffix} {month} {year}".format( day=date.day, month=date.strftime("%B"), suffix=suffix(date.day), year=date.year, ) except: return date
@havardgulldahl can you please give some more details on which file you made the change in. Where would I find that file on disk? Thanks.
@bigloudjeff That function (prettydate()
) is in this file: /Users/<your username here>/.datasette-app/venv/lib/python3.9/site-packages/datasette_app_support/__init__.py
. @havardgulldahl replaced the entire body of that function with the snippet.
I've got Datasette Desktop 0.2.2, Datasette: 0.64.1, Python: 3.9.6, SQLite: 3.36.0 and when I open "Install and Manage Plugins", I get an Error 500 "'NoneType' object has no attribute 'day'"
Opening the server log shows this: