-def _do_compile_format():
- global _format, _compile_format, _compiled_format
- if _compile_format:
- _compile_format = False
- try:
- _format = get_config().get('download', 'format')
- except:
- return
+def _compile_format():
+ global format, compile_format, compiled_format
+ if not compile_format:
+ return
+ compile_format = False
+ format = get_config().get('download', 'format')
+ if not format:
+ return