Skip to content

Commit

Permalink
fix for issue smicallef#1820
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Reynolds committed Dec 5, 2023
1 parent 0f815a2 commit f42315b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sfcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,8 +1368,7 @@ def do_EOF(self, line):
# Load commands from a file
if args.e:
try:
with open(args.e, 'r') as f:
cin = f.read()
cin = open(args.e, 'r')
except BaseException as e:
print(f"Unable to open {args.e}: ({e})")
sys.exit(-1)
Expand Down

0 comments on commit f42315b

Please sign in to comment.