Skip to content

Commit 0df71a7

Browse files
authored
Merge pull request #31 from abhiramasonny/MarchEgg-patch-1
fine
2 parents 0591f22 + 318f2cf commit 0df71a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def main(tryall=True):
1818

1919
for i in gun_detection.run_detection(cameras):
2020
#print(f'{i}')
21-
try:
21+
#print(type(i))
22+
if type(i) == dict:
2223
if 1 in list(i.values()):
2324
for key, value in i.items():
2425
if value == 1:
@@ -30,7 +31,7 @@ def main(tryall=True):
3031
#sendP(i)
3132
#if type(i) != int:
3233
# break
33-
except AttributeError:
34+
else:
3435
# if this is running we have had a gun man for more that 4 ticks
3536
print('you goofy goober')
3637
#rammi

0 commit comments

Comments
 (0)