Skip to content

Commit 1db277e

Browse files
authored
Update restapi_server.py
1 parent 96be71e commit 1db277e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/restapi_server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def main():
3838
log_setup(filename=args.logfile, max_bytes=args.maxbytes * 1024, backup_count=args.backupcount)
3939

4040
# Check if the device_file exists
41-
if not os.path.exists(args.device_file):
41+
if os.path.exists(args.device_file) == False:
4242
log(f"Device file '{args.device_file}' does not exist.", RsLogLevel.ERROR)
4343
sys.exit(1)
4444

@@ -107,6 +107,5 @@ def signal_handler(signal_received, frame):
107107
# Start Rest API server
108108
app.run(debug=args.debug, port=args.port)
109109

110-
111110
if __name__ == "__main__":
112111
main()

0 commit comments

Comments
 (0)