Skip to content

Commit

Permalink
Print the error message on stderr in a python2 compatible way
Browse files Browse the repository at this point in the history
Change-Id: Iaea1510b02a2df924ef9777d107d22c45cb37d12
  • Loading branch information
velichkov authored and ptrkrysik committed May 3, 2021
1 parent cc8d863 commit dfcf7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/grgsm_decode
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ if __name__ == '__main__':
parser.error("Invalid A5 version\n")

if options.cfile and (options.fc is None and options.arfcn is None):
print("You haven't provided a frequency or an ARFCN - working without automatic frequency offset correction.\n", file=sys.stderr)
sys.stderr.write("You haven't provided a frequency or an ARFCN - working without automatic frequency offset correction.\n")

# handle frequency / arfcn input
arfcn = None
Expand Down

0 comments on commit dfcf7fd

Please sign in to comment.