We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f183f commit 06ee582Copy full SHA for 06ee582
bin/panxapi.py
@@ -676,7 +676,7 @@ def get_element(s):
676
elif os.path.isfile(s):
677
try:
678
f = open(s)
679
- except IOError as msg:
+ except OSError as msg:
680
print('open %s: %s' % (s, msg), file=sys.stderr)
681
sys.exit(1)
682
element = f.readlines()
@@ -788,13 +788,13 @@ def save_attachment(xapi, options):
788
789
790
f = open(path, 'wb')
791
792
print('open %s: %s' % (path, msg), file=sys.stderr)
793
return
794
795
796
f.write(xapi.export_result['content'])
797
798
print('write %s: %s' % (path, msg), file=sys.stderr)
799
f.close()
800
0 commit comments