Added a notice about mgg.global_config perhaps sometime not
being loaded before mediagoblin.processing is imported.
This commit is contained in:
parent
4f4f2531ad
commit
034a0e0b97
@ -27,6 +27,8 @@ from mediagoblin.media_types import get_media_manager
|
||||
|
||||
_log = logging.getLogger(__name__)
|
||||
|
||||
# This might fail if this module is loaded before the global_config
|
||||
# is parsed although this far it has not.
|
||||
THUMB_SIZE = (mgg.global_config['media:thumb']['max_width'],
|
||||
mgg.global_config['media:thumb']['max_height'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user