Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
df-aggregator
Commits
0cd3b6c4
Commit
0cd3b6c4
authored
Dec 25, 2020
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some error handling.
parent
c676d23f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
df-aggregator.py
df-aggregator.py
+8
-2
No files found.
df-aggregator.py
View file @
0cd3b6c4
...
@@ -816,7 +816,13 @@ def handle_interest_areas(action):
...
@@ -816,7 +816,13 @@ def handle_interest_areas(action):
# Starts the Bottle webserver.
# Starts the Bottle webserver.
###############################################
###############################################
def
start_server
(
ipaddr
=
"127.0.0.1"
,
port
=
8080
):
def
start_server
(
ipaddr
=
"127.0.0.1"
,
port
=
8080
):
run
(
host
=
ipaddr
,
port
=
port
,
quiet
=
True
,
server
=
"paste"
,
debug
=
True
)
try
:
run
(
host
=
ipaddr
,
port
=
port
,
quiet
=
True
,
server
=
"paste"
,
debug
=
True
)
except
OSError
:
print
(
f
"Port {port} seems to be in use. Please select another port or "
+
"check if another instance of DFA is already running."
)
debugging
=
True
finish
()
###############################################
###############################################
# Captures DOA data and computes intersections
# Captures DOA data and computes intersections
...
@@ -1188,7 +1194,7 @@ if __name__ == '__main__':
...
@@ -1188,7 +1194,7 @@ if __name__ == '__main__':
tokenfile
=
options
.
token_file
tokenfile
=
options
.
token_file
with
open
(
tokenfile
,
"r"
)
as
token
:
with
open
(
tokenfile
,
"r"
)
as
token
:
access_token
=
token
.
read
()
.
replace
(
'
\n
'
,
''
)
access_token
=
token
.
read
()
.
replace
(
'
\n
'
,
''
)
print
(
access_token
)
#
print(access_token)
else
:
else
:
access_token
=
None
access_token
=
None
...
...
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