File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ async def backup(radio_path: str):
39
39
nwk_nvid + offset , item_type = t .Bytes
40
40
)
41
41
except SecurityError :
42
- LOGGER .error ("Read not allowed for %s" , key )
42
+ LOGGER .warning ("Read disallowed for %s" , key )
43
43
continue
44
44
except KeyError :
45
45
break
@@ -50,10 +50,9 @@ async def backup(radio_path: str):
50
50
try :
51
51
value = await znp .nvram .osal_read (nwk_nvid , item_type = t .Bytes )
52
52
except KeyError :
53
- LOGGER .warning ("Read failed for %s" , nwk_nvid )
54
53
continue
55
54
except SecurityError :
56
- LOGGER .error ("Read not allowed for %s" , nwk_nvid )
55
+ LOGGER .warning ("Read disallowed for %s" , nwk_nvid )
57
56
continue
58
57
59
58
LOGGER .info ("%s = %s" , nwk_nvid , value )
@@ -91,7 +90,7 @@ async def main(argv):
91
90
args = parser .parse_args (argv )
92
91
93
92
obj = await backup (args .serial )
94
- args .output .write (json .dumps (obj , indent = 4 ))
93
+ args .output .write (json .dumps (obj , indent = 4 ) + " \n " )
95
94
96
95
97
96
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments