Skip to content

Commit 6dc499b

Browse files
authored
Merge pull request #407 from WilliamsCJ/fix-controlflow-missing-format
Fix missing control flow format argument
2 parents 850a96b + 6c933b1 commit 6dc499b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build/*
22
dist/*
33
env/*
44
.vscode/
5+
.idea/
56
.ipynb_checkpoints/
67
config.json
78
__pycache__/

inspect4py/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, path, out_control_flow_path, out_json_path, control_flow, abs
5656
self.bodyInfo = self.inspect_body()
5757
if control_flow:
5858
self.out_control_flow_path = out_control_flow_path
59-
self.controlFlowInfo = self.inspect_controlflow()
59+
self.controlFlowInfo = self.inspect_controlflow("png")
6060
else:
6161
self.controlFlowInfo = {}
6262
self.fileJson = self.file_json()
@@ -1325,7 +1325,7 @@ def main(input_path, output_dir, ignore_dir_pattern, ignore_file_pattern, requir
13251325
else:
13261326
dir_info[out_dir].append(code_info.fileJson[0])
13271327
except:
1328-
print("Error when processing " + f + ": ", sys.exc_info()[0])
1328+
print("Error when processing " + f + ": ", sys.exc_info())
13291329
continue
13301330

13311331
# Generate the call list of the Dir

0 commit comments

Comments
 (0)