Ignore arrow parser warnings when running commands

This commit is contained in:
Joakim Soderlund 2019-09-01 15:18:39 +02:00
parent b2bd5e30bd
commit 4a92ced65b

View file

@ -23,11 +23,16 @@ Main module script.
import sys
import warnings
from arrow.factory import ArrowParseWarning
from fimfarchive.commands import RootCommand
if __name__ == '__main__':
warnings.simplefilter('ignore', ArrowParseWarning)
cmd = RootCommand()
code = cmd(*sys.argv[1:])
exit(code=code)