mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Lazyload toml only when it's actually needed to simplify boring dependencies issues
This commit is contained in:
parent
935a984e95
commit
bd6ad626d9
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf8 -*-
|
||||
|
||||
import toml
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
|
@ -1505,6 +1504,7 @@ class Manifest(TestSuite):
|
|||
self.raw_manifest, object_pairs_hook=check_for_duplicate_keys
|
||||
)
|
||||
else:
|
||||
import toml
|
||||
self.manifest = toml.loads(self.raw_manifest)
|
||||
except Exception as e:
|
||||
print(
|
||||
|
|
Loading…
Reference in a new issue