summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmonitor-menu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor-menu.py b/monitor-menu.py
index c81f753..48e12a4 100755
--- a/monitor-menu.py
+++ b/monitor-menu.py
@@ -62,7 +62,7 @@ def main(argv=None):
menu = MonitorMenu()
try:
- if '<profile>' in args:
+ if '<profile>' in args and args['<profile>'] is not None:
menu.run(int(args['<profile>']))
else:
menu.run()