Skip to content

Commit 127e97f

Browse files
author
Alexander Smishlajev
committed
unset svc_args is empty list, not None
1 parent a6e89b5 commit 127e97f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/scripts/roundup_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.60 2004-09-21 08:01:15 a1s Exp $
20+
$Id: roundup_server.py,v 1.61 2004-09-21 08:16:50 a1s Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -499,7 +499,7 @@ def run(port=undefined, success_message=None):
499499
elif opt == '-c': svc_args = [opt] + args; args = None
500500
elif opt == '-C': config = arg
501501

502-
if svc_args is not None and len(optlist) > 1:
502+
if svc_args and len(optlist) > 1:
503503
raise ValueError, _("windows service option must be the only one")
504504

505505
if pidfile and not logfile:

0 commit comments

Comments
 (0)