Commit 4a6f5e89 authored by Andreas Jung's avatar Andreas Jung

Zope embedded in C/C++ might raise an IndexError as well

parent 03d1d69b
...@@ -209,7 +209,7 @@ class ZDOptions: ...@@ -209,7 +209,7 @@ class ZDOptions:
if progname is None: if progname is None:
try: try:
progname = sys.argv[0] progname = sys.argv[0]
except AttributeError: except (AttributeError, IndexError):
progname = 'zope' progname = 'zope'
if doc is None: if doc is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment