Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
807086ba
Commit
807086ba
authored
Apr 30, 2006
by
Lennart Regebro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nice ImportError raised if you try to use twisted without having it,
parent
fd89cf9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lib/python/Zope2/Startup/__init__.py
lib/python/Zope2/Startup/__init__.py
+1
-1
lib/python/Zope2/Startup/datatypes.py
lib/python/Zope2/Startup/datatypes.py
+2
-1
No files found.
lib/python/Zope2/Startup/__init__.py
View file @
807086ba
...
...
@@ -117,7 +117,7 @@ class ZopeStarter:
config
=
getConfiguration
()
if
config
.
twisted_servers
:
if
not
_use_twisted
:
raise
ValueError
,
"You do not have twisted installed."
raise
ImportError
(
"You do not have twisted installed."
)
twisted
.
internet
.
reactor
.
run
()
else
:
import
ZServer
...
...
lib/python/Zope2/Startup/datatypes.py
View file @
807086ba
...
...
@@ -345,4 +345,5 @@ try:
pass
except
ImportError
:
class
TwistedServerFactory
:
pass
def
__init__
(
self
,
section
):
raise
ImportError
(
"You do not have twisted installed."
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment