We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dceec85 + dc5d2d6 commit cea95b2Copy full SHA for cea95b2
2 files changed
.gitignore
@@ -29,4 +29,7 @@ sdk/diffgram/task/__pycache__/
29
30
sdk/diffgram/utils/__pycache__/
31
32
-venv/*
+venv/*
33
+
34
+sdk/build/*
35
+sdk/dist/
sdk/diffgram/core/directory.py
@@ -194,9 +194,10 @@ def new(self, name: str):
194
# Confirm not in existing
195
# generator expression returns True if the directory
196
# is not found. this is a bit awkward.
197
- if next((dir for dir in self.client.directory_list
198
- if dir.nickname == name), True) is not True:
199
- raise Exception(name, "Already exists")
+ if self.client.directory_list:
+ if next((dir for dir in self.client.directory_list
+ if dir.nickname == name), True) is not True:
200
+ raise Exception(name, "Already exists")
201
202
packet = {'nickname': name}
203
0 commit comments