mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] include execption into appslist_retrieve_error message
This commit is contained in:
parent
2aab7bdf1b
commit
99f0f761a5
2 changed files with 2 additions and 4 deletions
|
@ -30,7 +30,7 @@
|
||||||
"app_upgraded": "{app:s} has been upgraded",
|
"app_upgraded": "{app:s} has been upgraded",
|
||||||
"appslist_fetched": "The app list has been fetched",
|
"appslist_fetched": "The app list has been fetched",
|
||||||
"appslist_removed": "The app list has been removed",
|
"appslist_removed": "The app list has been removed",
|
||||||
"appslist_retrieve_error": "Unable to retrieve the remote app list",
|
"appslist_retrieve_error": "Unable to retrieve the remote app list: {error}",
|
||||||
"appslist_unknown": "Unknown app list",
|
"appslist_unknown": "Unknown app list",
|
||||||
"ask_current_admin_password": "Current administration password",
|
"ask_current_admin_password": "Current administration password",
|
||||||
"ask_email": "Email address",
|
"ask_email": "Email address",
|
||||||
|
|
|
@ -103,9 +103,7 @@ def app_fetchlist(url=None, name=None):
|
||||||
try:
|
try:
|
||||||
urlretrieve(url, '%s/%s.json' % (repo_path, name))
|
urlretrieve(url, '%s/%s.json' % (repo_path, name))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# I don't know how to put e into the MoulinetteError stuff
|
raise MoulinetteError(errno.EBADR, m18n.n('appslist_retrieve_error'), error=str(e))
|
||||||
print e
|
|
||||||
raise MoulinetteError(errno.EBADR, m18n.n('appslist_retrieve_error'))
|
|
||||||
|
|
||||||
open("/etc/cron.d/yunohost-applist-%s" % name, "w").write('00 00 * * * root yunohost app fetchlist -u %s -n %s > /dev/null 2>&1\n' % (url, name))
|
open("/etc/cron.d/yunohost-applist-%s" % name, "w").write('00 00 * * * root yunohost app fetchlist -u %s -n %s > /dev/null 2>&1\n' % (url, name))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue