Skip to content

Commit

Permalink
Fix dgenies cli error if not run with mode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pbordron committed May 4, 2023
1 parent 2469a13 commit a5de857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/dgenies
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def parse_args():

if 'config' in args and args.config:
config.reset_config(args.config)
if args.mode == "webserver":
if 'mode' in args and args.mode == "webserver":
import dgenies.database as database
database.initialize()

Expand Down

0 comments on commit a5de857

Please sign in to comment.