aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/loop.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/loop.py b/scripts/loop.py
index dd5949a..dbf2b70 100755
--- a/scripts/loop.py
+++ b/scripts/loop.py
@@ -95,9 +95,12 @@ def phase_get():
def phase_set(phs):
# TODO
- global thr
- if thr.term:
- return
+ try:
+ global thr
+ if thr.term:
+ return
+ except NameError:
+ pass
with open(sf(conf.phase_file), 'w') as f:
f.write(phases[phs])