We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af6a63c commit d57cc24Copy full SHA for d57cc24
minecode/ls.py
@@ -182,10 +182,7 @@ def parse_directory_listing(dir_listing, from_find=False):
182
# this is likely a directory line from an ls -LR listing. Strip
183
# trailing colon and keep track of the base directory
184
if not line.endswith(":"):
185
- raise Exception(
186
- "Unknown directory listing line format: #%(ln)d: %(line)r"
187
- % locals()
188
- )
+ raise Exception(f"Unknown directory listing line format: #{ln}: {line}")
189
base_dir = line.strip(":")
190
continue
191
0 commit comments