projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump version and changelog for release
[osm/N2VC.git]
/
juju
/
client
/
facade.py
diff --git
a/juju/client/facade.py
b/juju/client/facade.py
index
00dd26a
..
c959e01
100644
(file)
--- a/
juju/client/facade.py
+++ b/
juju/client/facade.py
@@
-267,7
+267,7
@@
def buildTypes(schema, capture):
class {}(Type):
_toSchema = {}
_toPy = {}
class {}(Type):
_toSchema = {}
_toPy = {}
- def __init__(self{}{}):
+ def __init__(self{}{}
, **unknown_fields
):
'''
{}
'''""".format(
'''
{}
'''""".format(
@@
-519,7
+519,10
@@
class Type:
if isinstance(data, cls):
return data
if isinstance(data, str):
if isinstance(data, cls):
return data
if isinstance(data, str):
- data = json.loads(data)
+ try:
+ data = json.loads(data)
+ except json.JSONDecodeError:
+ raise
d = {}
for k, v in (data or {}).items():
d[cls._toPy.get(k, k)] = v
d = {}
for k, v in (data or {}).items():
d[cls._toPy.get(k, k)] = v