mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 10:51:56 +00:00
Change error message for missing pillow libs.
This commit is contained in:
parent
333836ff92
commit
76e1565200
@ -22,7 +22,8 @@ except IOError as e:
|
|||||||
if str(e).startswith("decoder jpeg not available"):
|
if str(e).startswith("decoder jpeg not available"):
|
||||||
raise Exception(
|
raise Exception(
|
||||||
"FATAL: jpeg codec not supported. Install pillow correctly! "
|
"FATAL: jpeg codec not supported. Install pillow correctly! "
|
||||||
" 'sudo apt-get install libjpeg-dev' then 'pip install -I pillow'"
|
" 'sudo apt-get install libjpeg-dev' then 'pip uninstall pillow &&"
|
||||||
|
" pip install pillow --user'"
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
# any other exception is fine
|
# any other exception is fine
|
||||||
@ -36,7 +37,8 @@ except IOError as e:
|
|||||||
if str(e).startswith("decoder zip not available"):
|
if str(e).startswith("decoder zip not available"):
|
||||||
raise Exception(
|
raise Exception(
|
||||||
"FATAL: zip codec not supported. Install pillow correctly! "
|
"FATAL: zip codec not supported. Install pillow correctly! "
|
||||||
" 'sudo apt-get install libjpeg-dev' then 'pip install -I pillow'"
|
" 'sudo apt-get install libjpeg-dev' then 'pip uninstall pillow &&"
|
||||||
|
" pip install pillow --user'"
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
# any other exception is fine
|
# any other exception is fine
|
||||||
|
Loading…
Reference in New Issue
Block a user