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 96be71e commit 1db277eCopy full SHA for 1db277e
backend/restapi_server.py
@@ -38,7 +38,7 @@ def main():
38
log_setup(filename=args.logfile, max_bytes=args.maxbytes * 1024, backup_count=args.backupcount)
39
40
# Check if the device_file exists
41
- if not os.path.exists(args.device_file):
+ if os.path.exists(args.device_file) == False:
42
log(f"Device file '{args.device_file}' does not exist.", RsLogLevel.ERROR)
43
sys.exit(1)
44
@@ -107,6 +107,5 @@ def signal_handler(signal_received, frame):
107
# Start Rest API server
108
app.run(debug=args.debug, port=args.port)
109
110
-
111
if __name__ == "__main__":
112
main()
0 commit comments