X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fdownload.py;h=30412013123eb317883464c7fef5d9c1cf0c790e;hb=df203f56e0035351f68c7d01f4842330b53b26e1;hp=6f4daf4fe31e17d2cb75a13e9206dff317cfa2b4;hpb=061a45aba1f91ec167eb9ac283a4c0a0afb52798;p=m_librarian.git diff --git a/m_librarian/download.py b/m_librarian/download.py index 6f4daf4..3041201 100755 --- a/m_librarian/download.py +++ b/m_librarian/download.py @@ -21,7 +21,7 @@ def _compile_format(): compile_format = False try: format = get_config().get('download', 'format') - except: + except Exception: return got_percent = False compiled = [] @@ -111,5 +111,6 @@ def test(): _compile_format() print(compiled_format) + if __name__ == '__main__': test()