Skip to content

Commit c1d0fab

Browse files
committedJun 24, 2016
Fix env var
1 parent ca55b21 commit c1d0fab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tests/src/python/qgis_wrapped_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
from qgis.server import QgsServer
2525

2626
try:
27-
QGIS_SERVER_DEFAULT_PORT = os.environ('QGIS_SERVER_DEFAULT_PORT')
28-
except:
27+
QGIS_SERVER_DEFAULT_PORT = int(os.environ['QGIS_SERVER_DEFAULT_PORT'])
28+
except KeyError:
2929
QGIS_SERVER_DEFAULT_PORT = 8081
3030

3131

0 commit comments

Comments
 (0)
Please sign in to comment.