mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-29 16:18:00 +01:00
Ignore arrow parser warnings when running commands
This commit is contained in:
parent
b2bd5e30bd
commit
4a92ced65b
1 changed files with 5 additions and 0 deletions
|
@ -23,11 +23,16 @@ Main module script.
|
||||||
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from arrow.factory import ArrowParseWarning
|
||||||
|
|
||||||
from fimfarchive.commands import RootCommand
|
from fimfarchive.commands import RootCommand
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
warnings.simplefilter('ignore', ArrowParseWarning)
|
||||||
|
|
||||||
cmd = RootCommand()
|
cmd = RootCommand()
|
||||||
code = cmd(*sys.argv[1:])
|
code = cmd(*sys.argv[1:])
|
||||||
exit(code=code)
|
exit(code=code)
|
||||||
|
|
Loading…
Reference in a new issue